mediawiki-extensions-Visual.../modules/ve/dm
Catrope 0054cd2a57 Fix exception when deleting all text (Ctrl+A Backspace)
Exception was caused by passing -1 to getAnnotationsFromOffset(). So
check for -1 before passing it in; getNearestContentOffset() can
legitimately return -1 if there are no content offsets in the document,
which occurs when the document is empty.

I was originally going to change getNearestContentOffset(start - 1, -1)
to getRelativeContentOffset(start, -1), but Inez correctly pointed out
that that would have unwanted results when near an inline node.

Change-Id: Ife4b497b1c5fd04d411bb25cea99e6ea2abf146f
2012-10-15 15:03:08 -07:00
..
annotations New annotation API: convert existing annotations 2012-10-12 15:07:25 -07:00
nodes Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.dm.Annotation.js New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
ve.dm.AnnotationFactory.js New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
ve.dm.BranchNode.js Whitespace and comments 2012-09-17 16:53:03 -07:00
ve.dm.Converter.js New annotation API: ve.dm.Converter integration 2012-10-12 15:07:28 -07:00
ve.dm.Document.js Revert "No longer create zero-length text nodes" 2012-10-12 18:04:15 +00:00
ve.dm.DocumentSynchronizer.js Documentation & clean up 2012-09-17 16:02:52 +02:00
ve.dm.js New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
ve.dm.LeafNode.js Whitespace and comments 2012-09-17 16:53:03 -07:00
ve.dm.Node.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.NodeFactory.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.Surface.js Fix exception when deleting all text (Ctrl+A Backspace) 2012-10-15 15:03:08 -07:00
ve.dm.SurfaceFragment.js Reversed the default value of autoSelect in surface fragments 2012-10-12 17:34:15 -07:00
ve.dm.Transaction.js Added reversed boolean for translateOffset 2012-10-10 14:59:30 -07:00
ve.dm.TransactionProcessor.js Revert "No longer create zero-length text nodes" 2012-10-12 18:04:15 +00:00