]> source.dussan.org Git - jquery.git/commitdiff
Core: remove isArraylike check for nodes
authorMu Haibao <mhbseal@163.com>
Wed, 29 Apr 2015 16:53:30 +0000 (00:53 +0800)
committerTimmy Willison <timmywillisn@gmail.com>
Tue, 5 May 2015 17:21:10 +0000 (10:21 -0700)
Fixes gh-2238
Close gh-2243

src/core.js

index b3e9a71037b840063f20ac6b1f9a9bdd87369425..88b9a3c5d86f812d546b295734bc068e10692edb 100644 (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;
 }