Commit dcf94a58 authored by Rick Waldron's avatar Rick Waldron

Ensure that null/undefined args don't choke on native indexOf

Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent 1d0322f0
...@@ -587,7 +587,7 @@ jQuery.extend({ ...@@ -587,7 +587,7 @@ jQuery.extend({
}, },
inArray: function( elem, arr, i ) { inArray: function( elem, arr, i ) {
return core_indexOf.call( arr, elem, i ); return arr == null ? -1 : core_indexOf.call( arr, elem, i );
}, },
merge: function( first, second ) { 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