diff --git a/www/common/cursor.js b/www/common/cursor.js index 04276a179..845067a80 100644 --- a/www/common/cursor.js +++ b/www/common/cursor.js @@ -86,6 +86,7 @@ define([ }; var fixSelection = cursor.fixSelection = function (sel, range) { + try { if (Tree.contains(Range.start.el, inner) && Tree.contains(Range.end.el, inner)) { var order = Tree.orderOfNodes(Range.start.el, Range.end.el, inner); var backward; @@ -118,6 +119,7 @@ define([ console.error(errText); return errText; } + } catch (e) { console.error(e); } }; cursor.pushDelta = function (oldVal, newVal) {