From af06c3c771f5935a993a7c741105eac78dd10fa7 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Mon, 17 Dec 2012 17:05:41 -0500 Subject: [PATCH] 2.0: Remove inArray shim Signed-off-by: Rick Waldron --- src/core.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/core.js b/src/core.js index d4166ce19..ea0f438f8 100644 --- a/src/core.js +++ b/src/core.js @@ -615,25 +615,7 @@ jQuery.extend({ }, inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( core_indexOf ) { - return core_indexOf.call( arr, elem, i ); - } - - len = arr.length; - i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; - - for ( ; i < len; i++ ) { - // Skip accessing in sparse arrays - if ( i in arr && arr[ i ] === elem ) { - return i; - } - } - } - - return -1; + return core_indexOf.call( arr, elem, i ); }, merge: function( first, second ) { -- 2.39.5