mirror of
https://github.com/status-im/codimd.git
synced 2025-02-24 17:38:12 +00:00
Fix for selectionObjects in OT CodeMirror adapter might call on undefined
This commit is contained in:
parent
eaf9218f61
commit
23a12dd927
2
public/vendor/ot/codemirror-adapter.js
vendored
Normal file → Executable file
2
public/vendor/ot/codemirror-adapter.js
vendored
Normal file → Executable file
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
2
public/vendor/ot/ot.min.js
vendored
2
public/vendor/ot/ot.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user