mediawiki-extensions-Visual.../modules
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
..
jquery
jquery.uls
jsdifflib Use jsdifflib for QUnit diff 2013-10-23 20:31:17 +00:00
oojs Update oojs to v1.0.5 2013-10-23 03:16:21 +02:00
oojs-ui Update OOJS UI to v0.1.0-pre (e5ef1e5b28) 2013-11-25 10:47:49 +00:00
qunit
rangy
syntaxhighlight Fix icon opacities 2013-11-22 13:47:20 +00:00
unicodejs Revert model to use simple UTF-16 code units 2013-11-26 19:38:14 +00:00
ve Fix spurious MetaList events 2013-12-03 22:48:50 +00:00
ve-mw Merge "Clear cache key when deactivating target" 2013-12-03 18:24:28 +00:00