fixing Ox.isEqual
This commit is contained in:
parent
c31ff816c1
commit
44496d343e
1 changed files with 2 additions and 0 deletions
|
@ -4388,8 +4388,10 @@ Ox.isEqual = function(a, b) {
|
|||
isEqual = true;
|
||||
} else if (type == 'date') {
|
||||
isEqual = a.getTime() == b.getTime();
|
||||
/* toString doesn't do it
|
||||
} else if (['element', 'function'].indexOf(type) > -1) {
|
||||
isEqual = a.toString() == b.toString();
|
||||
*/
|
||||
} else if (type == 'regexp') {
|
||||
isEqual = a.global == b.global &&
|
||||
a.ignore == b.ignore &&
|
||||
|
|
Loading…
Reference in a new issue