Changeset 3287
- Timestamp:
- 06/07/07 15:40:26 (1 year ago)
- Files:
-
- sandbox/tschaub/debug/lib/OpenLayers/Console.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/tschaub/debug/lib/OpenLayers/Console.js
r3234 r3287 25 25 } 26 26 /** 27 * If Firebug Lite is included , re-route all OpenLayers.Console calls to the28 * console object.27 * If Firebug Lite is included (before this script), re-route all 28 * OpenLayers.Console calls to the console object. 29 29 */ 30 var scripts = document.getElementsByTagName("script"); 31 for(var i=0; i<scripts.length; ++i) { 32 if(scripts[i].src.indexOf("firebug.js") != -1) { 33 OpenLayers.Util.extend(OpenLayers.Console, console); 34 break; 30 if(window.console) { 31 var scripts = document.getElementsByTagName("script"); 32 for(var i=0; i<scripts.length; ++i) { 33 if(scripts[i].src.indexOf("firebug.js") != -1) { 34 OpenLayers.Util.extend(OpenLayers.Console, console); 35 break; 36 } 35 37 } 36 38 }
