git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add some tests for jQuery.isWindow and make sure that we're operating against an...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
9cb519b
..
b747e5b
100644
(file)
--- 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 ) {