Changeset 8177
- Timestamp:
- 04/19/07 16:43:27 (21 months ago)
- Location:
- branches/0.4/src
- Files:
-
- 2 modified
-
hostenv_browser.js (modified) (1 diff)
-
loader_xd.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/src/hostenv_browser.js
r7519 r8177 273 273 } 274 274 275 dojo.hostenv._djInitFired = false; 275 276 // BEGIN DOMContentLoaded, from Dean Edwards (http://dean.edwards.name/weblog/2006/06/again/) 276 277 function dj_load_init(e){ 278 dojo.hostenv._djInitFired = true; 277 279 // allow multiple calls, only first one will take effect 278 280 // A bug in khtml calls events callbacks for document for event which isnt supported -
branches/0.4/src/loader_xd.js
r8005 r8177 541 541 //Clear inflight count so we will finally do finish work. 542 542 this.inFlightCount = 0; 543 this.callLoaded(); 543 544 //Only trigger call loaded if dj_load_init has run. 545 if(this._djInitFired && !this.loadNotifying){ 546 this.callLoaded(); 547 } 544 548 } 545 549 … … 574 578 if(this.xdHasCalledPreload || dojo.hostenv.getModulePrefix("dojo") == "src" || !this.localesGenerated){ 575 579 this.xdRealCallLoaded(); 576 this.xdHasCalledPreload = true;577 580 }else{ 578 581 if(this.localesGenerated){ … … 583 586 this.preloadLocalizations(); 584 587 } 585 this.xdHasCalledPreload = true;586 }587 } 588 } 589 this.xdHasCalledPreload = true; 590 }