Fix for selectionObjects in OT CodeMirror adapter might call on undefined

This commit is contained in:
Wu Cheng-Han 2017-01-05 00:00:05 +08:00
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
View 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();
}
}
};

File diff suppressed because one or more lines are too long