pushDelta was mistakenly deprecated. restored.
This commit is contained in:
@@ -228,8 +228,7 @@ define([
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO deprecate
|
var pushDelta = cursor.pushDelta = function (oldVal, newVal, offset) {
|
||||||
var pushDelta = /* cursor.pushDelta =*/ function (oldVal, newVal, offset) {
|
|
||||||
if (oldVal === newVal) { return; }
|
if (oldVal === newVal) { return; }
|
||||||
var commonStart = 0;
|
var commonStart = 0;
|
||||||
while (oldVal.charAt(commonStart) === newVal.charAt(commonStart)) {
|
while (oldVal.charAt(commonStart) === newVal.charAt(commonStart)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user