Commit d6933917 authored by Mu Haibao's avatar Mu Haibao Committed by Timmy Willison

Core: remove isArraylike check for nodes

Fixes gh-2238
Close gh-2243
parent a16b77fb
......@@ -496,10 +496,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment