Update lengthDifference in ve.dm.Transaction.pushReplace()

This makes the tests pass

Change-Id: Iede7f47183378d80419f616ff62732a07d136d87
This commit is contained in:
Catrope 2012-04-19 18:11:44 -07:00
parent f9fd9ea66b
commit d4d2ae88ad

View file

@ -100,6 +100,7 @@ ve.dm.Transaction.prototype.pushReplace = function( remove, replacement ) {
'remove': remove,
'replacement': replacement
} );
this.lengthDifference += replacement.length - remove.length;
};
/**