From 440fd1f06205486b0d11eab21dac88caa009d5f7 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 18 Jul 2018 22:23:06 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- diff.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/diff.js b/diff.js index 392eb44..417672d 100644 --- a/diff.js +++ b/diff.js @@ -323,9 +323,6 @@ var proxy = function(path, func){ // NOTE: this will lose some meta-information the diff format contains // like the type information which is not needed for patching but // may be useful for a more thorough compatibility check. -// -// -// XXX revise structure... var Types = { // Type handlers... handlers: new Map(), @@ -672,6 +669,7 @@ Types.set('Basic', { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Object... +// XXX add attr order support... Types.set(Object, { priority: -50, @@ -750,6 +748,7 @@ Types.set(Object, { // Array... // XXX might be a good idea to add sub-section splicing, i.e. sub-arrays // and not just rely on item-level... +// XXX add item order support... Types.set(Array, { handle: function(obj, diff, A, B, options){ obj.length = A.length != B.length ? [A.length, B.length] : []