This commit is contained in:
rolux 2012-06-03 10:39:59 +02:00
parent 43558a55a3
commit 191d7b3099

View file

@ -31,6 +31,8 @@ Ox.isArray <f> Tests if a value is an array
true
> Ox.isArray((function() { return arguments; }()))
false
> Ox.isArray(document.getElementsByTagName('a'))
false
> Ox.isArray({0: 0, length: 1})
false
@*/
@ -144,7 +146,7 @@ Ox.isEqual = function(a, b) {
ret = a.global == b.global && a.ignore == b.ignore
&& a.multiline == b.multiline && a.source == b.source;
} else if (
['arguments', 'array', 'object'].indexOf(type) > -1
(type == 'arguments' || type == 'array' || type == 'object')
&& Ox.len(a) == Ox.len(b)
) {
ret = true;