mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39: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 |
||
---|---|---|
.. | ||
jquery | ||
parser | ||
qunit | ||
rangy | ||
sandbox | ||
ve | ||
ve2 |