mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 02:50:10 +00:00
notes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f9d81c2bac
commit
01c07bfe18
7
diff2.js
7
diff2.js
@ -816,8 +816,11 @@ function(A, B, cmp){
|
|||||||
// within commonSections(..)
|
// within commonSections(..)
|
||||||
// ...can this be done by simply comparing the last path element
|
// ...can this be done by simply comparing the last path element
|
||||||
// for any contained element???
|
// for any contained element???
|
||||||
|
// .....will we have container border issues here???
|
||||||
|
// ........should this be optional???
|
||||||
|
// this can also be achieved by nesting...
|
||||||
var keyValueDiff =
|
var keyValueDiff =
|
||||||
function(A, B){
|
function(A, B, options={}){
|
||||||
return diffSections(
|
return diffSections(
|
||||||
[...objectWalkerWithText(A)
|
[...objectWalkerWithText(A)
|
||||||
.chain(serializePaths)],
|
.chain(serializePaths)],
|
||||||
@ -850,7 +853,7 @@ function(A, B){
|
|||||||
&& av.type == bv.type ) }) }
|
&& av.type == bv.type ) }) }
|
||||||
|
|
||||||
|
|
||||||
var diff = valueDiff
|
var diff = keyValueDiff
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user