Skip to content

Commit

Permalink
Use winUtils.get() to get window from document. Refs #15216 !strict.
Browse files Browse the repository at this point in the history
  • Loading branch information
wkeese committed Apr 22, 2012
1 parent 4e6dde3 commit 94d9d49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ define([
"dojo/on",
"dojo/ready",
"dojo/sniff", // has("ie") has("opera") has("dijit-legacy-requires")
"dojo/window", // winUtils.getBox
"dojo/window", // winUtils.getBox, winUtils.get
"dojo/dnd/Moveable", // Moveable
"dojo/dnd/TimedMoveable", // TimedMoveable
"./focus",
Expand Down Expand Up @@ -382,7 +382,7 @@ define([
}

// Recenter Dialog if user scrolls browser. Connecting to document doesn't work on IE, need to use window.
var win = this.ownerDocument.defaultView || this.ownerDocument.parentWindow;
var win = winUtils.get(this.ownerDocument);
this._modalconnects.push(on(win, "scroll", lang.hitch(this, "resize")));

this._modalconnects.push(on(this.domNode, connect._keypress, lang.hitch(this, "_onKey")));
Expand Down
2 changes: 1 addition & 1 deletion focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ define([

// register top window and all the iframes it contains
ready(function(){
var handle = singleton.registerWin(win.doc.parentWindow || win.doc.defaultView);
var handle = singleton.registerWin(winUtils.get(win.doc));
if(has("ie")){
unload.addOnWindowUnload(function(){
if(handle){ // because this gets called twice when doh.robot is running
Expand Down

0 comments on commit 94d9d49

Please sign in to comment.