Changeset 7657

Show
Ignore:
Timestamp:
03/19/07 01:22:43 (22 months ago)
Author:
alex
Message:

dojo.debug --> console.debug. Refs #2500

Location:
dojo/trunk/_base/_loader
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/_loader/bootstrap.js

    r7652 r7657  
    149149} 
    150150 
    151 //Stub functions so things don't break. 
    152 //TODOC:  HOW TO DOC THESE? 
    153 dojo.debug = function(){}; 
    154 dojo.debugShallow = function(obj){}; 
    155 dojo.profile = {  
    156         start: function(){},  
    157         end: function(){},  
    158         stop: function(){},  
    159         dump: function(){} 
    160 }; 
    161  
    162151dojo["eval"] = function(/*String*/ scriptFragment){ 
    163152        // summary:  
     
    184173        if(extra){ message += " " + extra; } 
    185174        if(removal){ message += " -- will be removed in version: " + removal; } 
    186         dojo.debug(message); 
     175        console.debug(message); 
    187176} 
    188177 
     
    206195        message += " -- Not yet ready for use.  APIs subject to change without notice."; 
    207196        if(extra){ message += " " + extra; } 
    208         dojo.debug(message); 
     197        console.debug(message); 
    209198} 
    210199 
  • dojo/trunk/_base/_loader/hostenv_browser.js

    r7652 r7657  
    133133                                        if(4==http.readyState){ 
    134134                                                if(isDocumentOk(http)){ 
    135                                                         // dojo.debug("LOADED URI: "+uri); 
     135                                                        // console.debug("LOADED URI: "+uri); 
    136136                                                        async_cb(http.responseText); 
    137137                                                } 
  • dojo/trunk/_base/_loader/hostenv_rhino.js

    r7649 r7657  
    11/* 
    22* Rhino host environment 
    3 */ 
    4  
    5 /* 
    6 dojo.hostenv.println=function(line){ 
    7         if(arguments.length > 0){ 
    8                 print(arguments[0]); 
    9                 for(var i=1; i<arguments.length; i++){ 
    10                         var valid=false; 
    11                         for (var p in arguments[i]){valid=true;break;} 
    12                         if(valid){ 
    13                                 dojo.debugShallow(arguments[i]); 
    14                         } 
    15                 } 
    16         } else { 
    17                 print(line); 
    18         } 
    19 } 
    203*/ 
    214 
  • dojo/trunk/_base/_loader/hostenv_spidermonkey.js

    r7649 r7657  
    5050        // Perhaps it is returning the value of the last thing evaluated? 
    5151        var ok = load(uri); 
    52         // dojo.debug("spidermonkey load(", uri, ") returned ", ok); 
     52        // console.debug("spidermonkey load(", uri, ") returned ", ok); 
    5353        return 1; 
    5454} 
    55  
    56 dojo.requireIf((djConfig["isDebug"] || djConfig["debugAtAllCosts"]), "dojo.debug"); 
    57  
  • dojo/trunk/_base/_loader/loader.js

    r7656 r7657  
    123123                ok = this._loadUri(uri, cb); 
    124124        }catch(e){ 
    125                 dojo.debug("failed loading ", uri, " with error: ", e); 
     125                console.debug("failed loading ", uri, " with error: ", e); 
    126126        } 
    127127        return Boolean(ok && this.findModule(moduleName, false)); // Boolean 
     
    197197        if(this._postLoad){ return; } 
    198198        if(this._inFlightCount > 0){  
    199                 dojo.debug("files still in flight!"); 
     199                console.debug("files still in flight!"); 
    200200                return; 
    201201        }