Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-07 00:48:52 +0300
committerPhil Hughes <me@iamphill.com>2018-04-07 00:48:52 +0300
commit690c57867d6dcaaaee15208e9d4de6ec85f19e80 (patch)
tree879d1ec2b90cff2e0c9dc65e4e82b7bcfe5b8511 /app/assets/javascripts/ide/lib/editor.js
parent2b53f6cfa7675b127cf1c88a15de95ef02c7cbbf (diff)
added ability to have `head` file to compare against
fixed files getting into an opened & active state when it shouldnt
Diffstat (limited to 'app/assets/javascripts/ide/lib/editor.js')
-rw-r--r--app/assets/javascripts/ide/lib/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/ide/lib/editor.js b/app/assets/javascripts/ide/lib/editor.js
index 6b4ba30e086..9c14c1596b7 100644
--- a/app/assets/javascripts/ide/lib/editor.js
+++ b/app/assets/javascripts/ide/lib/editor.js
@@ -76,8 +76,8 @@ export default class Editor {
}
}
- createModel(file) {
- return this.modelManager.addModel(file);
+ createModel(file, head = null) {
+ return this.modelManager.addModel(file, head);
}
attachModel(model) {