Opened 11 years ago
Closed 11 years ago
#12902 closed bug (duplicate)
isWindow returns true when it should be false
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
var x = {}; x.window = x; $.isWindow(x); // returns true
why not use:
isWindow = function (obj) { return obj && obj !== null && obj === window; }
instead of:
isWindow = function (obj) { return obj && obj !== null && obj === obj.window; }
Note: See
TracTickets for help on using
tickets.
Duplicate of #12901.