if(!dojo._hasResource["dijit._base.window"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dijit._base.window"] = true; dojo.provide("dijit._base.window"); dijit.getDocumentWindow = function(doc){ // summary // Get window object associated with document doc // With Safari, there is not way to retrieve the window from the document, so we must fix it. if(dojo.isSafari && !doc._parentWindow){ /* This is a Safari specific function that fix the reference to the parent window from the document object. TODO: #5711: should the use of document below reference dojo.doc instead in case they're not the same? */ var fix=function(win){ win.document._parentWindow=win; for(var i=0; i