mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
47545a5d6f
This version pushes a `replaceMetadata` operation after a `replace` to fixup trailing metadata if there is no inserted region and the removed region includes metadata. This avoids a corner case where the size of the metadata arrays inserted/removed in `Transaction.pushReplace()` do not match the size of the data arrays inserted/removed. We remove the now-unused `Document.getMetadataReplace()` method. We also adjust `MetaList.onTransact()` so that it continues to work properly when the number of metadata entries in `replace.insert` is not the same as the number of metadata entries in `replace.remove`. Change-Id: I1d600405b855ca1cb569853bb885b0752df47173 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
test | ||
ui | ||
ve.BranchNode.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.Element.js | ||
ve.EventEmitter.js | ||
ve.EventSequencer.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.NamedClassFactory.js | ||
ve.Node.js | ||
ve.Range.js | ||
ve.Registry.js | ||
ve.track.js |