Changeset 13141

Show
Ignore:
Timestamp:
03/19/08 01:43:39 (8 months ago)
Author:
alex
Message:

make the console detection code smaller. Fixes #6255

Files:
1 modified

Legend:

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

    r13140 r13141  
    7979 
    8080        if(!this["console"]){ 
    81                 this.console = {}; 
     81                this.console = { 
     82                        log: function(){} // no-op 
     83                }; 
    8284        } 
    8385 
     
    8789                "trace", "warn", "log"  
    8890        ]; 
    89         if(!console["log"]){ // some browsers don't have full firebug bug give us console.log. Use it if we can. Refs #6255 
    90                 console.log = function(){}; // no-op 
    91         } 
    9291        var i=0, tn; 
    9392        while((tn=cn[i++])){