mediawiki-extensions-Visual.../modules/ve
C. Scott Ananian 7c1623d915 Cleanups for ve.dm.Transaction
Avoid making a copy of the entire data array by using `doc.data` and
`doc.data.getLength()` instead of `doc.getData()` and
`doc.getData().length`.

Get rid of some unnecessary conditionals in `Transaction.newFromWrap`: the
`tx.pushReplace()` and `tx.pushRetain()` methods will already gracefully
no-op if the replaced/retained region is empty; we don't need to add
extra control flow to handle that case.

Clarify offset math in `Transaction.newFromWrap`.

Fix a minor bug in `Transaction.newFromInsertion`: the final retain didn't
account for the length of the removed region, if `doc.fixupInsertion`
creates one.  (This usually doesn't happen.)

Remove an inaccurate TODO in `Transaction.pushReplaceMetadata()` -- it is
no longer a straight copy/paste of `Transaction.pushReplace`, so a refactor
isn't really called for.

Change-Id: I7d86a2449978365d69d4a5ed43116c2e9945475d
2013-09-04 01:41:07 +00:00
..
ce Merge "Kill domAttributeWhitelist in favor or renderHtmlAttributes" 2013-09-04 00:28:14 +00:00
dm Cleanups for ve.dm.Transaction 2013-09-04 01:41:07 +00:00
init Add keyboard shortcuts for formatting tools 2013-09-03 17:17:03 -07:00
test Make tools generic and add fancy tool groups 2013-09-03 11:27:39 -07:00
ui Add keyboard shortcuts for formatting tools 2013-09-03 17:17:03 -07:00
ve.BranchNode.js
ve.debug.js
ve.Document.js doc: Clean up spacing that caused <pre> or broken <ul>/<ol> 2013-07-25 04:02:50 +02:00
ve.Element.js doc: Add missing @static to static ve.Element methods 2013-08-02 08:49:53 +02:00
ve.EventEmitter.js
ve.Factory.js Make tools generic and add fancy tool groups 2013-09-03 11:27:39 -07:00
ve.js Include element HTML in QUnit summary for diff 2013-08-02 16:10:05 +01:00
ve.LeafNode.js
ve.NamedClassFactory.js
ve.Node.js
ve.Range.js Fix copy and paste of backwards selction 2013-08-22 18:10:34 +00:00
ve.Registry.js Make tools generic and add fancy tool groups 2013-09-03 11:27:39 -07:00
ve.track.js Add ve.track, a generic dispatch of analytic events 2013-08-03 02:51:07 +00:00