Skip to content
Permalink
Browse files

Fix inArray for positive start indices

  • Loading branch information...
timmywil committed Sep 13, 2011
1 parent 6ece8f1 commit b7ebbb9142f1f18f887fde6dfbb5fa5fd72dba47
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ) {

0 comments on commit b7ebbb9

Please sign in to comment.
You can’t perform that action at this time.