Core: remove isArraylike check for nodes

Fixes gh-2238
Close gh-2243
This commit is contained in:
Mu Haibao
2015-04-30 00:53:30 +08:00
committed by Timmy Willison
parent b92acf7237
commit 436f0aee0a

View File

@@ -444,10 +444,6 @@ function isArraylike( obj ) {
return false;
}
if ( obj.nodeType === 1 && length ) {
return true;
}
return type === "array" || length === 0 ||
typeof length === "number" && length > 0 && ( length - 1 ) in obj;
}