Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-06-20 19:59:59 +03:00
parent 79ee039ed3
commit f96b234460

View File

@ -740,6 +740,14 @@ function(A, B, cmp){
// compared...
// - handle item shifts gracefully...
// - diff recursively instead of flat...
// XXX another way to approach this is to treat indexes in a relative
// manner, i.e. keep track of relative order of elements...
// e.g. if we insert a sub-array then all the elements after it are
// simply shifted, that is, their relative order is maintained...
// ...this is already tracked by diffSections(..) but after
// handler(..) arrays are more like hashes, and we need to
// account for this....
//
var diff =
function(A, B){
return diffSections(