Commit af06c3c7 authored by Rick Waldron's avatar Rick Waldron

2.0: Remove inArray shim

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent bd9498c5
......@@ -615,25 +615,7 @@ jQuery.extend({
},
inArray: function( elem, arr, i ) {
var len;
if ( arr ) {
if ( core_indexOf ) {
return core_indexOf.call( arr, elem, i );
}
len = arr.length;
i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
for ( ; i < len; i++ ) {
// Skip accessing in sparse arrays
if ( i in arr && arr[ i ] === elem ) {
return i;
}
}
}
return -1;
return core_indexOf.call( arr, elem, i );
},
merge: function( first, second ) {
......
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