mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-28 10:30:09 +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(..)
|
||||
// ...can this be done by simply comparing the last path 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 =
|
||||
function(A, B){
|
||||
function(A, B, options={}){
|
||||
return diffSections(
|
||||
[...objectWalkerWithText(A)
|
||||
.chain(serializePaths)],
|
||||
@ -850,7 +853,7 @@ function(A, B){
|
||||
&& av.type == bv.type ) }) }
|
||||
|
||||
|
||||
var diff = valueDiff
|
||||
var diff = keyValueDiff
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user