Remove unnecessary variable

This commit is contained in:
Dmitry Yankowski
2020-02-25 20:48:48 -05:00
parent f4b46763a4
commit 590403650e

View File

@@ -55,7 +55,6 @@ export default {
return { return {
initialized: false, initialized: false,
editor: null, editor: null,
shouldLint: true,
cacheValue: "", cacheValue: "",
} }
}, },
@@ -65,7 +64,7 @@ export default {
if (value !== this.cacheValue) { if (value !== this.cacheValue) {
this.editor.session.setValue(value, 1) this.editor.session.setValue(value, 1)
this.cacheValue = value this.cacheValue = value
if (this.shouldLint) this.provideLinting(value) if (this.lint) this.provideLinting(value)
} }
}, },
theme() { theme() {
@@ -109,11 +108,11 @@ export default {
const content = editor.getValue() const content = editor.getValue()
this.$emit("input", content) this.$emit("input", content)
this.cacheValue = content this.cacheValue = content
if (this.shouldLint) this.provideLinting(content) if (this.lint) this.provideLinting(content)
}) })
// Disable linting, if lint prop is false // Disable linting, if lint prop is false
if (this.shouldLint) this.provideLinting(this.value) if (this.lint) this.provideLinting(this.value)
}, },
methods: { methods: {