mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-28 10:30:09 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
79ee039ed3
commit
f96b234460
8
diff2.js
8
diff2.js
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user