From a57cf2d53d88fa88af03689c7b9e7ed59ee5ff35 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 21 Jul 2021 10:59:57 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- diff2.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/diff2.js b/diff2.js index a25bcb0..19d5f6b 100644 --- a/diff2.js +++ b/diff2.js @@ -805,10 +805,13 @@ function(A, B, cmp){ // XXX if two sub-trees are different, do we treat them as a big set of // atomic changes or replace X with Y??? // XXX might be a good idea to strip out (optionally) differences within -// a container that differ only in container path, i.e.: -// /a/b/:4/x 123 +// a container when the container path changed but nothing else, in +// other words, skip items that did not change locally, i.e.: +// /a/b/:4 {type: 'Object'} +// /a/b/:4/x 123 // and -// /a/b/:1/x 123 +// /a/b/:1 {type: 'Object'} +// /a/b/:1/x 123 // are not different... // example: // // this will list that every element within the nested array