mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
17f4dc220a
I was using data.length to check if the range was out of bounds, but this is a problem when using selectNodes() inside of tree sync code (which happens when performing rebuilds). While tree sync is in progress, the model tree and the linear model don't match, so we shouldn't be looking at the linear model for information about the model tree. Instead, get the length of the DocumentNode and use that. ` Change-Id: I11a378544ce1281a89cdcd4363c5cb1bf56f3434 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
ve.BranchNode.js | ||
ve.EventEmitter.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.NodeFactory.js | ||
ve.Position.js | ||
ve.Range.js | ||
ve.Surface.js |