Skip to content

Commit

Permalink
Since we no longer cache the value in _parentWindow (see Cougar's com…
Browse files Browse the repository at this point in the history
…ment about avoid a memory), there's no reason to check if the value is check that variable.

Refs #7028 !strict.
  • Loading branch information
wkeese committed Mar 29, 2010
1 parent 10eb925 commit 0b207a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions window.js
Expand Up @@ -19,7 +19,7 @@ dojo.window.get = function(doc){
// reference to the real window object (maybe a copy), so we must fix it as well
// We use IE specific execScript to attach the real window reference to
// document._parentWindow for later use
if(dojo.isIE && window !== document.parentWindow && !doc._parentWindow){
if(dojo.isIE && window !== document.parentWindow){
/*
In IE 6, only the variable "window" can be used to connect events (others
may be only copies).
Expand All @@ -32,7 +32,7 @@ dojo.window.get = function(doc){
return win; // Window
}

return doc._parentWindow || doc.parentWindow || doc.defaultView; // Window
return doc.parentWindow || doc.defaultView; // Window
};

dojo.window.scrollIntoView = function(/*DomNode*/ node, /*Object?*/ pos){
Expand Down

0 comments on commit 0b207a3

Please sign in to comment.