pushDelta was mistakenly deprecated. restored.

pull/1/head
ansuz 2016-04-20 14:20:34 +02:00
parent 7adc7eef22
commit 010566d3c3
1 changed files with 1 additions and 2 deletions
www/common

View File

@ -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; }
var commonStart = 0;
while (oldVal.charAt(commonStart) === newVal.charAt(commonStart)) {