Fixing typo in cursor.getSelectionBoundry
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 5 Aug 2013 12:58:29 +0000 (14:58 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 5 Aug 2013 12:58:29 +0000 (14:58 +0200)
modules/documentCanvas/canvas/canvas.js

index cb9fb69..dd15d06 100644 (file)
@@ -617,7 +617,7 @@ $.extend(Cursor.prototype, {
                 element: focusElement,
                 offset: getOffset('focus'),
                 offsetAtBeginning: getOffset('focus') === 0,
-                offsetAtEnd: selection.focusElement.data.length === getOffset('focus')
+                offsetAtEnd: selection.focusNode.data.length === getOffset('focus')
             };
         }