mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-28 18:40:09 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
dff7432479
commit
b8f7daad40
37
diff.js
37
diff.js
@ -2428,23 +2428,6 @@ Types.set(Array, {
|
||||
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
/*/ XXX Set...
|
||||
Types.set(Set, {
|
||||
handle: function(obj, diff, A, B, options){
|
||||
// XXX
|
||||
}
|
||||
walk: function(diff, func, path){
|
||||
// XXX
|
||||
},
|
||||
reverse: function(change){
|
||||
// XXX
|
||||
},
|
||||
})
|
||||
//*/
|
||||
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// XXX add JS types like Map, Set, ...
|
||||
// XXX Q: can Map/Set be supported???
|
||||
// - there is not uniform item access
|
||||
// -> need to type path elements
|
||||
@ -2464,6 +2447,10 @@ Types.set(Set, {
|
||||
// - use a best overall match as indication...
|
||||
// - serialize...
|
||||
// ...will need a way to sort the items in a stable way...
|
||||
// - might be possible to use "links" within a diff to represent
|
||||
// recursion and identical items, but this will not resolve
|
||||
// Map key patches outside the diff...
|
||||
// ...api to link in items -- i.e. "replace that in diff with this"???
|
||||
/*/ XXX for now unsupported types will be treated as object...
|
||||
Types.set(Map, {
|
||||
handle: function(obj, diff, A, B, options){
|
||||
@ -2473,6 +2460,22 @@ Types.set(Map, {
|
||||
//*/
|
||||
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
/*/ XXX Set...
|
||||
Types.set(Set, {
|
||||
handle: function(obj, diff, A, B, options){
|
||||
// XXX
|
||||
}
|
||||
walk: function(diff, func, path){
|
||||
// XXX
|
||||
},
|
||||
reverse: function(change){
|
||||
// XXX
|
||||
},
|
||||
})
|
||||
//*/
|
||||
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
/*/ Pattern...
|
||||
// XXX need to accompany this with a walk pattern protocol....
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user