Fix for selectionObjects in OT CodeMirror adapter might call on undefined
This commit is contained in:
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
Reference in New Issue
Block a user