mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
removedItems[i] is already an item, no need to pass removedItems[i].item
Bug: 54727 Change-Id: Iff8e9c8f1dc7a701d4773bf15817897a871d9e98
This commit is contained in:
parent
7849be8ec0
commit
e4daeea01e
|
@ -232,7 +232,7 @@ ve.dm.MetaList.prototype.onTransact = function ( tx, reversed ) {
|
||||||
for ( i = 0, ilen = removedItems.length; i < ilen; i++ ) {
|
for ( i = 0, ilen = removedItems.length; i < ilen; i++ ) {
|
||||||
this.deleteRemovedItem( removedItems[i].offset, removedItems[i].index );
|
this.deleteRemovedItem( removedItems[i].offset, removedItems[i].index );
|
||||||
events.push( [
|
events.push( [
|
||||||
'remove', removedItems[i].item, removedItems[i].offset, removedItems[i].index
|
'remove', removedItems[i], removedItems[i].offset, removedItems[i].index
|
||||||
] );
|
] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue