From 0b207a3eccc98f6cf5abe3a5328f3ff0da80233c Mon Sep 17 00:00:00 2001 From: Bill Keese Date: Mon, 29 Mar 2010 06:24:05 +0000 Subject: [PATCH] Since we no longer cache the value in _parentWindow (see Cougar's comment about avoid a memory), there's no reason to check if the value is check that variable. Refs #7028 !strict. --- window.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window.js b/window.js index d5b7bbbf2..e2c498b60 100644 --- a/window.js +++ b/window.js @@ -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). @@ -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){