summaryrefslogtreecommitdiff
path: root/public/vendor/ot/codemirror-adapter.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/vendor/ot/codemirror-adapter.js')
-rwxr-xr-x[-rw-r--r--]public/vendor/ot/codemirror-adapter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/vendor/ot/codemirror-adapter.js b/public/vendor/ot/codemirror-adapter.js
index beff98c6..d858c411 100644..100755
--- a/public/vendor/ot/codemirror-adapter.js
+++ b/public/vendor/ot/codemirror-adapter.js
@@ -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();
}
}
};