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
ef4048497a
commit
d45db4d848
7
diff.js
7
diff.js
@ -736,6 +736,8 @@ module.Types = {
|
||||
options.as_object = options.as_object || []
|
||||
|
||||
// basic compare...
|
||||
// XXX nesting still does not work...
|
||||
// diff(OR([1,2], [2,1]), [1,2]) -> false (should be true)
|
||||
// XXX do we need to differentiate things like: new Number(123) vs. 123???
|
||||
var bcmp = function(a, b, cmp){
|
||||
return a === b
|
||||
@ -746,10 +748,9 @@ module.Types = {
|
||||
// logic patterns...
|
||||
// XXX not final...
|
||||
|| (a instanceof LogicType
|
||||
&& a.cmp(b, cmp))
|
||||
&& a.cmp(b, cmp, cache))
|
||||
|| (b instanceof LogicType
|
||||
&& b.cmp(a, cmp))
|
||||
}
|
||||
&& b.cmp(a, cmp, cache)) }
|
||||
// deep compare...
|
||||
var cmp = options.cmp = options.cmp
|
||||
|| function(a, b){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user