Skip to content

Commit

Permalink
Fix for selectionObjects in OT CodeMirror adapter might call on undef…
Browse files Browse the repository at this point in the history
…ined
  • Loading branch information
jackycute committed Jan 4, 2017
1 parent eaf9218 commit 23a12dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/vendor/ot/codemirror-adapter.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
};
Expand Down
Loading

0 comments on commit 23a12dd

Please sign in to comment.