Fix for selectionObjects in OT CodeMirror adapter might call on undefined
This commit is contained in:
parent
eaf9218f61
commit
23a12dd927
2 changed files with 2 additions and 2 deletions
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 {
|
return {
|
||||||
clear: function () {
|
clear: function () {
|
||||||
for (var i = 0; i < selectionObjects.length; i++) {
|
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…
Reference in a new issue