Add sane defaults to TextPatcher diffs
This commit is contained in:
parent
259772dd62
commit
f4c5b2a996
@ -23,8 +23,8 @@ var diff = function (oldval, newval) {
|
|||||||
commonEnd++;
|
commonEnd++;
|
||||||
}
|
}
|
||||||
|
|
||||||
var toRemove;
|
var toRemove = 0;
|
||||||
var toInsert;
|
var toInsert = '';
|
||||||
|
|
||||||
/* throw some assertions in here before dropping patches into the realtime */
|
/* throw some assertions in here before dropping patches into the realtime */
|
||||||
if (oldval.length !== commonStart + commonEnd) {
|
if (oldval.length !== commonStart + commonEnd) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user