mirror of https://github.com/status-im/codimd.git
Fix for selectionObjects in OT CodeMirror adapter might call on undefined
This commit is contained in:
parent
eaf9218f61
commit
23a12dd927
|
@ -328,7 +328,7 @@ ot.CodeMirrorAdapter = (function (global) {
|
|||
return {
|
||||
clear: function () {
|
||||
for (var i = 0; i < selectionObjects.length; i++) {
|
||||
selectionObjects[i].clear();
|
||||
if (selectionObjects[i]) selectionObjects[i].clear();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue