From b7ebbb9142f1f18f887fde6dfbb5fa5fd72dba47 Mon Sep 17 00:00:00 2001 From: timmywil Date: Mon, 12 Sep 2011 21:46:16 -0400 Subject: [PATCH] Fix inArray for positive start indices --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 8bc3137dd..41fa8cde6 100644 --- a/src/core.js +++ b/src/core.js @@ -691,7 +691,7 @@ jQuery.extend({ } len = array.length; - i = i && i < 0 ? Math.max( 0, len + i ) : 0; + i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; for ( ; i < len; i++ ) { if ( array[ i ] === elem ) {