mediawiki-extensions-Visual.../modules/ve
Roan Kattouw 39eea83698 Fix spurious MetaList events
Moving items around in the MetaList only works if all deletions are
done before all insertions. This was almost but not completely true:
when moving an existing item we would delete it and immediately re-
insert it, meaning that if there were multiple items being moved
there would be a removal after an insertion.

Instead, let the insertion loop re-insert the moved items while
making sure not to emit insert events for them. This is how I
originally intended the code to be structured, but I thought that
duplicating the insertion would be equivalent to protecting the
emission of the insertion event. Clearly I was wrong.

This fixes weird bugs where categories sometimes appeared twice
in the category dialog depending on where the category was in
the list and what the exact length of the list was (i.e., whether
the binary search in the MetaList found the first or second item
with identical offset and index).

Change-Id: I4cd131052dda396add7a0e2dbe2383bb5c1b5721
2013-12-03 22:48:50 +00:00
..
ce Merge "Use a global resizing flag on the surface to hide phantoms" 2013-12-03 03:22:56 +00:00
dm Fix spurious MetaList events 2013-12-03 22:48:50 +00:00
init Plain text paste with paste special 2013-11-26 18:23:58 +00:00
test Pressing enter in a list with no nearby content creates a paragraph 2013-12-02 15:57:43 +00:00
ui Close inspectors when surface is focused but selection doesn't change 2013-12-02 23:52:54 +00:00
ve.BranchNode.js
ve.debug.js
ve.Document.js Use OO.EventEmitter instead of ve.EventEmitter 2013-10-22 16:57:33 +00:00
ve.EventSequencer.js Test Surface with IME-like event sequences 2013-11-25 16:49:49 +00:00
ve.js ve.js: Coding style fixup for 6f2090aac6 2013-11-26 23:00:24 +00:00
ve.LeafNode.js
ve.Node.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.Range.js doc: Fix existing violations detected by JSDuck 5 2013-11-19 16:10:25 +05:30
ve.track.js ve.track: add topic-based analytic event subscription 2013-10-16 10:03:27 -07:00