Changeset 13140
- Timestamp:
- 03/19/08 01:42:03 (5 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/_base/_loader/bootstrap.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/_base/_loader/bootstrap.js
r13121 r13140 75 75 (function(){ 76 76 // firebug stubs 77 if((!this["console"])||(!console["firebug"])){ 77 78 // if((!this["console"])||(!console["firebug"])){ 79 80 if(!this["console"]){ 78 81 this.console = {}; 79 82 } … … 81 84 var cn = [ 82 85 "assert", "count", "debug", "dir", "dirxml", "error", "group", 83 "groupEnd", "info", " log", "profile", "profileEnd", "time",84 "t imeEnd", "trace", "warn"86 "groupEnd", "info", "profile", "profileEnd", "time", "timeEnd", 87 "trace", "warn", "log" 85 88 ]; 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 } 86 92 var i=0, tn; 87 93 while((tn=cn[i++])){ 88 94 if(!console[tn]){ 89 console[tn] = function(){}; 95 (function(){ 96 var tcn = tn+""; 97 console[tcn] = function(){ 98 var a = Array.apply({}, arguments); 99 a.unshift(tcn+":"); 100 console.log(a.join(" ")); 101 } 102 })(); 90 103 } 91 104 }