mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
CodeMirror upgrade to 5.38.0
This commit is contained in:
parent
36be6243ad
commit
cfe30dcde5
52 changed files with 905 additions and 413 deletions
6
gui/public/codemirror/addon/lint/lint.js
vendored
6
gui/public/codemirror/addon/lint/lint.js
vendored
|
@ -132,7 +132,7 @@
|
|||
cm.off("change", abort)
|
||||
if (state.waitingFor != id) return
|
||||
if (arg2 && annotations instanceof CodeMirror) annotations = arg2
|
||||
updateLinting(cm, annotations)
|
||||
cm.operation(function() {updateLinting(cm, annotations)})
|
||||
}, passOptions, cm);
|
||||
}
|
||||
|
||||
|
@ -151,9 +151,9 @@
|
|||
var annotations = getAnnotations(cm.getValue(), passOptions, cm);
|
||||
if (!annotations) return;
|
||||
if (annotations.then) annotations.then(function(issues) {
|
||||
updateLinting(cm, issues);
|
||||
cm.operation(function() {updateLinting(cm, issues)})
|
||||
});
|
||||
else updateLinting(cm, annotations);
|
||||
else cm.operation(function() {updateLinting(cm, annotations)})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue