fix Ox.isEqual for RegExp
This commit is contained in:
parent
92e141cb81
commit
869a5ef5ee
1 changed files with 1 additions and 2 deletions
|
@ -171,8 +171,7 @@ Ox.isEqual = function(a, b) {
|
||||||
} else if (type == 'element') {
|
} else if (type == 'element') {
|
||||||
ret = a.isEqualNode(b);
|
ret = a.isEqualNode(b);
|
||||||
} else if (type == 'regexp') {
|
} else if (type == 'regexp') {
|
||||||
ret = a.global == b.global && a.ignore == b.ignore
|
ret = a.toString() == b.toString();
|
||||||
&& a.multiline == b.multiline && a.source == b.source;
|
|
||||||
} else if (
|
} else if (
|
||||||
(type == 'arguments' || type == 'array' || type == 'object')
|
(type == 'arguments' || type == 'array' || type == 'object')
|
||||||
&& Ox.len(a) == Ox.len(b)
|
&& Ox.len(a) == Ox.len(b)
|
||||||
|
|
Loading…
Reference in a new issue