summaryrefslogtreecommitdiff
path: root/public/vendor/ot/codemirror-adapter.js
diff options
context:
space:
mode:
authorWu Cheng-Han2017-01-05 00:00:05 +0800
committerWu Cheng-Han2017-01-05 00:00:05 +0800
commit23a12dd927b66880fa991b377d450455851b69a9 (patch)
tree3a109c9c7d9857e2eef4489142a1e1fdaa308272 /public/vendor/ot/codemirror-adapter.js
parenteaf9218f612f9aa23414decb676d87c812e70f66 (diff)
Fix for selectionObjects in OT CodeMirror adapter might call on undefined
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();
}
}
};