Skip to content
Permalink
Browse files

$.inArray doesn't crush IE6 and Chrome if second argument is `null` o…

…r `undefined`
  • Loading branch information...
anton-ryzhov committed Aug 17, 2011
1 parent 2053d1c commit 9c18eb2c15a762b4f3137fef9897914c80083a89
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core.js
@@ -678,6 +678,10 @@ jQuery.extend({
},

inArray: function( elem, array ) {
if (!jQuery.isArray(array))
{
return -1;
}

if ( indexOf ) {
return indexOf.call( array, elem );

0 comments on commit 9c18eb2

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