Passed
Pull Request — master (#57)
by Michael
03:00
created

initializePublicAPI.js ➔ initializePublicAPI   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
import KeyValueForm from './nodeviews/KeyValueForm';
2
3
export default function initializePublicAPI() {
4
    if (!window.Prosemirror.classes) {
5
        window.Prosemirror.classes = {};
6
    }
7
    window.Prosemirror.classes.KeyValueForm = KeyValueForm;
8
}
9