diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-07 00:48:52 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-07 00:48:52 +0300 |
commit | 690c57867d6dcaaaee15208e9d4de6ec85f19e80 (patch) | |
tree | 879d1ec2b90cff2e0c9dc65e4e82b7bcfe5b8511 /app/assets/javascripts/ide/lib/editor.js | |
parent | 2b53f6cfa7675b127cf1c88a15de95ef02c7cbbf (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.js | 4 |
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) { |