X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=b747e5beaa669e57018767d7c65067f99e686ed6;hb=d7a6e75241ecc433cd5228174960dd8465ca3ff7;hp=9cb519be574742f1fa8a86f99a677262a9cda674;hpb=c8dd49f756562fef68f664869952e4f5aab08acd;p=jquery.git diff --git a/src/core.js b/src/core.js index 9cb519b..b747e5b 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 ) {