From 436f0aee0a4c37ecb61b87a3a44227f6f5153b3a Mon Sep 17 00:00:00 2001 From: Mu Haibao Date: Thu, 30 Apr 2015 00:53:30 +0800 Subject: [PATCH] Core: remove isArraylike check for nodes Fixes gh-2238 Close gh-2243 --- src/core.js | 4 ---- 1 file changed, 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; } -- 2.39.5