mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 01:17:56 -05:00
Fix inArray for positive start indices
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user