diff options
author | Wu Cheng-Han | 2017-01-05 00:00:05 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-01-05 00:00:05 +0800 |
commit | 23a12dd927b66880fa991b377d450455851b69a9 (patch) | |
tree | 3a109c9c7d9857e2eef4489142a1e1fdaa308272 /public/vendor/ot/codemirror-adapter.js | |
parent | eaf9218f612f9aa23414decb676d87c812e70f66 (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.js | 2 |
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(); } } }; |