mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix inArray for positive start indices
This commit is contained in:
parent
6ece8f138f
commit
b7ebbb9142
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user