Commit 8a043b6b authored by Phil Hughes's avatar Phil Hughes

fixed eslint

parent 891164f1
...@@ -69,7 +69,7 @@ export default class Editor { ...@@ -69,7 +69,7 @@ export default class Editor {
occurrencesHighlight: false, occurrencesHighlight: false,
renderLineHighlight: 'none', renderLineHighlight: 'none',
hideCursorInOverviewRuler: true, hideCursorInOverviewRuler: true,
renderSideBySide: this.renderSideBySide(domElement), renderSideBySide: Editor.renderSideBySide(domElement),
})), })),
); );
...@@ -178,7 +178,7 @@ export default class Editor { ...@@ -178,7 +178,7 @@ export default class Editor {
if (!this.isDiffEditorType) return; if (!this.isDiffEditorType) return;
this.instance.updateOptions({ this.instance.updateOptions({
renderSideBySide: this.renderSideBySide(this.instance.getDomNode()), renderSideBySide: Editor.renderSideBySide(this.instance.getDomNode()),
}); });
} }
...@@ -186,7 +186,7 @@ export default class Editor { ...@@ -186,7 +186,7 @@ export default class Editor {
return this.instance.getEditorType() === 'vs.editor.IDiffEditor'; return this.instance.getEditorType() === 'vs.editor.IDiffEditor';
} }
renderSideBySide(domElement) { static renderSideBySide(domElement) {
return domElement.offsetWidth >= 700; return domElement.offsetWidth >= 700;
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment