Commit b7ebbb91 authored by timmywil's avatar timmywil

Fix inArray for positive start indices

parent 6ece8f13
......@@ -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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment