fix linting error

This commit is contained in:
Philipp Kühn
2018-10-30 22:49:50 +01:00
parent 681c685287
commit 06bb2ab802
3 changed files with 30 additions and 24 deletions

View File

@@ -20,7 +20,10 @@ export default {
},
},
render(createElement) {
if (this.editor) {
if (!this.editor) {
return null
}
return createElement('div', this.$scopedSlots.default({
focused: this.editor.view.focused,
focus: this.editor.focus,
@@ -28,6 +31,5 @@ export default {
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
}
},
}

View File

@@ -6,7 +6,10 @@ export default {
},
},
render(createElement) {
if (this.editor) {
if (!this.editor) {
return null
}
return createElement('div', this.$scopedSlots.default({
focused: this.editor.view.focused,
focus: this.editor.focus,
@@ -14,6 +17,5 @@ export default {
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
}
},
}

View File

@@ -20,7 +20,10 @@ export default {
},
},
render(createElement) {
if (this.editor) {
if (!this.editor) {
return null
}
return createElement('div', this.$scopedSlots.default({
focused: this.editor.view.focused,
focus: this.editor.focus,
@@ -28,6 +31,5 @@ export default {
isActive: this.editor.isActive.bind(this.editor),
markAttrs: this.editor.markAttrs.bind(this.editor),
}))
}
},
}