aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.js b/src/core.js
index 0b99b74a2..85a381661 100644
--- a/src/core.js
+++ b/src/core.js
@@ -679,6 +679,9 @@ jQuery.extend({
},
inArray: function( elem, array ) {
+ if ( !array ) {
+ return -1;
+ }
if ( indexOf ) {
return indexOf.call( array, elem );