mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 20:55:01 -05:00
Core: remove isArraylike check for nodes
Fixes gh-2238 Close gh-2243
This commit is contained in:
committed by
Timmy Willison
parent
a16b77fb89
commit
d6933917d2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user