mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Refine the jQuery.isWindow check.
This commit is contained in:
committed by
Dave Methvin
parent
166b9d252a
commit
0fcfac7568
@@ -476,9 +476,8 @@ jQuery.extend({
|
||||
return jQuery.type(obj) === "array";
|
||||
},
|
||||
|
||||
// A crude way of determining if an object is a window
|
||||
isWindow: function( obj ) {
|
||||
return obj && typeof obj === "object" && "setInterval" in obj;
|
||||
return obj != null && obj == obj.window;
|
||||
},
|
||||
|
||||
isNumeric: function( obj ) {
|
||||
|
||||
Reference in New Issue
Block a user