summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/lib
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-05 10:46:19 +0100
committerPhil Hughes <me@iamphill.com>2018-04-05 11:14:09 +0100
commit8a043b6bed33f96d40c4cc37abebcbb327691a00 (patch)
tree7297e59eedee67569fb9f35ad78996fed010740a /app/assets/javascripts/ide/lib
parent891164f10b49417fb0fbcb29638d346e9a56dd63 (diff)
downloadgitlab-ce-8a043b6bed33f96d40c4cc37abebcbb327691a00.tar.gz
fixed eslint
Diffstat (limited to 'app/assets/javascripts/ide/lib')
-rw-r--r--app/assets/javascripts/ide/lib/editor.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/lib/editor.js b/app/assets/javascripts/ide/lib/editor.js
index 0fa0ddecf13..001737d6ee8 100644
--- a/app/assets/javascripts/ide/lib/editor.js
+++ b/app/assets/javascripts/ide/lib/editor.js
@@ -69,7 +69,7 @@ export default class Editor {
occurrencesHighlight: false,
renderLineHighlight: 'none',
hideCursorInOverviewRuler: true,
- renderSideBySide: this.renderSideBySide(domElement),
+ renderSideBySide: Editor.renderSideBySide(domElement),
})),
);
@@ -178,7 +178,7 @@ export default class Editor {
if (!this.isDiffEditorType) return;
this.instance.updateOptions({
- renderSideBySide: this.renderSideBySide(this.instance.getDomNode()),
+ renderSideBySide: Editor.renderSideBySide(this.instance.getDomNode()),
});
}
@@ -186,7 +186,7 @@ export default class Editor {
return this.instance.getEditorType() === 'vs.editor.IDiffEditor';
}
- renderSideBySide(domElement) {
+ static renderSideBySide(domElement) {
return domElement.offsetWidth >= 700;
}
}