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
6636819d49
commit
97708c2cce
7
diff.js
7
diff.js
@ -304,7 +304,8 @@ var partHandlers = {
|
||||
// {
|
||||
// type: 'Array',
|
||||
//
|
||||
// length: [A, B],
|
||||
// // NOTE: this is present only if A and B lengths are different...
|
||||
// length: [<A-length>, <B-length>],
|
||||
//
|
||||
// // holds both index and attribute keys (mode-dependant)...
|
||||
// items: [
|
||||
@ -318,6 +319,7 @@ var partHandlers = {
|
||||
// ...
|
||||
// ],
|
||||
// // only for non-index keys...
|
||||
// // XXX unused...
|
||||
// item_order: <array-diff>,
|
||||
// }
|
||||
//
|
||||
@ -332,6 +334,7 @@ var partHandlers = {
|
||||
// [<key-a>, <key-b>, <diff>],
|
||||
// ...
|
||||
// ],
|
||||
// // XXX unused...
|
||||
// item_order: <array-diff>,
|
||||
// }
|
||||
//
|
||||
@ -387,7 +390,6 @@ Types.handle = function(type, obj, ...args){
|
||||
return obj
|
||||
}
|
||||
|
||||
|
||||
// NOTE: this will include direct links to items.
|
||||
// XXX do we need to differentiate things like: new Number(123) vs. 123???
|
||||
// XXX check seen -- avoid recursion...
|
||||
@ -481,6 +483,7 @@ function(A, B, options, cache){
|
||||
// XXX need to track order very carefully here... (???)
|
||||
// XXX should this follow the same extensible structure as _diff???
|
||||
// ...i.e. type handlers etc.
|
||||
// ......or this could be more generic...
|
||||
var flatten =
|
||||
function(diff, res, path){
|
||||
res = res || []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user