aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-22 16:50:38 -0400
committerjeresig <jeresig@gmail.com>2010-09-22 16:50:38 -0400
commitd7a6e75241ecc433cd5228174960dd8465ca3ff7 (patch)
tree0fd3d160b9486738d594651a35db5a272c466fb0 /src
parentc8dd49f756562fef68f664869952e4f5aab08acd (diff)
downloadjquery-d7a6e75241ecc433cd5228174960dd8465ca3ff7.tar.gz
jquery-d7a6e75241ecc433cd5228174960dd8465ca3ff7.zip
Add some tests for jQuery.isWindow and make sure that we're operating against an object before testing.
Diffstat (limited to 'src')
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index 9cb519be5..b747e5bea 100644
--- a/src/core.js
+++ b/src/core.js
@@ -476,7 +476,7 @@ jQuery.extend({
// A crude way of determining if an object is a window
isWindow: function( obj ) {
- return "setInterval" in obj;
+ return obj && typeof obj === "object" && "setInterval" in obj;
},
type: function( obj ) {