Skip to content

Commit fa6e628

Browse files
committed
no need to guard against updating at this point
it is never true
1 parent 43d988d commit fa6e628

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

indigo_app/static/javascript/indigo/views/document_xml_editor.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,16 @@ class AknTextEditor {
9090
this.dirty = false;
9191
}
9292

93-
if (!this.updating) {
94-
this.previousText = this.unparse();
93+
this.previousText = this.unparse();
9594

96-
// only default liveUpdates to true if the document isn't too long
97-
// a 100k document takes about 0.5s to parse, which is our upper limit
98-
this.setLiveUpdates(this.previousText.length < 100000);
95+
// only default liveUpdates to true if the document isn't too long
96+
// a 100k document takes about 0.5s to parse, which is our upper limit
97+
this.setLiveUpdates(this.previousText.length < 100000);
9998

100-
this.monacoEditor.setValue(this.previousText);
101-
const top = {column: 1, lineNumber: 1};
102-
this.monacoEditor.setPosition(top);
103-
this.monacoEditor.revealPosition(top);
104-
}
99+
this.monacoEditor.setValue(this.previousText);
100+
const top = {column: 1, lineNumber: 1};
101+
this.monacoEditor.setPosition(top);
102+
this.monacoEditor.revealPosition(top);
105103
}
106104

107105
async onTextChanged () {

0 commit comments

Comments
 (0)