diff options
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 6fad83b2a..4f99e0f4c 100644 --- a/src/core.js +++ b/src/core.js @@ -587,7 +587,7 @@ jQuery.extend({ }, 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 ) { |