Changeset 31369 in legacy


Ignore:
Timestamp:
Apr 28, 2013 4:17:06 AM (4 years ago)
Author:
csnover
Message:

Fix dojo/ready to not blindly make calls to methods that might not exist on the require object. Fixes #15616.
!strict
Backport to 1.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.8/dojo/ready.js

    r29174 r31369  
    4646                };
    4747
    48         require.on("idle", onLoad);
     48        require.on && require.on("idle", onLoad);
    4949        requestCompleteSignal = function(){
    50                 if(require.idle()){
     50                if(require.idle ? require.idle() : true){
    5151                        onLoad();
    5252                } // else do nothing, onLoad will be called with the next idle signal
Note: See TracChangeset for help on using the changeset viewer.