mirror of
https://github.com/flynx/diff.js.git
synced 2025-10-29 02:50:10 +00:00
working on handling special keys...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c5601945c4
commit
1369934117
9
diff2.js
9
diff2.js
@ -73,8 +73,15 @@ module.HANDLERS = {
|
|||||||
return [[k], v] }), ] },
|
return [[k], v] }), ] },
|
||||||
},
|
},
|
||||||
|
|
||||||
// XXX do we need to treat array keys as a special case???
|
|
||||||
// XXX need to optionally treat special attributes...
|
// XXX need to optionally treat special attributes...
|
||||||
|
specialKeys: {
|
||||||
|
match: function(obj){
|
||||||
|
return false },
|
||||||
|
handle: function(obj){
|
||||||
|
// XXX
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// XXX do we need to treat array keys as a special case???
|
||||||
keys: {
|
keys: {
|
||||||
match: function(obj){
|
match: function(obj){
|
||||||
return typeof(obj) == 'object' },
|
return typeof(obj) == 'object' },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user