diff options
author | Mu Haibao <mhbseal@163.com> | 2015-04-30 00:53:30 +0800 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-05-05 10:21:10 -0700 |
commit | 436f0aee0a4c37ecb61b87a3a44227f6f5153b3a (patch) | |
tree | 319df0f6cffda363cfe9907b1e3b8651b5c81c11 | |
parent | b92acf72372c3ad09d5f67ba3a1b2c19355a0e5f (diff) | |
download | jquery-436f0aee0a4c37ecb61b87a3a44227f6f5153b3a.tar.gz jquery-436f0aee0a4c37ecb61b87a3a44227f6f5153b3a.zip |
Core: remove isArraylike check for nodes
Fixes gh-2238
Close gh-2243
-rw-r--r-- | src/core.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core.js b/src/core.js index b3e9a7103..88b9a3c5d 100644 --- a/src/core.js +++ b/src/core.js @@ -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; } |