Changeset 13534

Show
Ignore:
Timestamp:
05/01/08 16:55:58 (7 months ago)
Author:
jburke
Message:

Refs #5887: move afterOnLoad kickoff after the dojo.config.require work in dojo._base.

Location:
branches/1.1
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1/dojo/_base/_loader/hostenv_browser.js

    r12835 r13534  
    262262        } 
    263263 
    264         if(dojo.config.afterOnLoad){ 
    265                 //Dojo is being added to the page after page load, so just trigger 
    266                 //the init sequence after a timeout. Using a timeout so the rest of this 
    267                 //script gets evaluated properly. 
    268                 window.setTimeout(dojo._fakeLoadInit, 1000); 
    269         }else{ 
     264        if(!dojo.config.afterOnLoad){ 
    270265                //      START DOMContentLoaded 
    271266                // Mozilla and Opera 9 expose the event we could use 
  • branches/1.1/util/buildscripts/jslib/dojoGuardEnd.jsfrag

    r12009 r13534  
     1 
     2        if(dojo.config.afterOnLoad && dojo.isBrowser){ 
     3                //Dojo is being added to the page after page load, so just trigger 
     4                //the init sequence after a timeout. Using a timeout so the rest of this 
     5                //script gets evaluated properly. This work needs to happen after the 
     6                //dojo.config.require work done in dojo._base. 
     7                window.setTimeout(dojo._fakeLoadInit, 1000); 
     8        } 
    19 
    210})();