OpenLayers OpenLayers

Changeset 3287

Show
Ignore:
Timestamp:
06/07/07 15:40:26 (1 year ago)
Author:
tschaub
Message:

add in a check for window.console to make this even *lower* impact

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/tschaub/debug/lib/OpenLayers/Console.js

    r3234 r3287  
    2525    } 
    2626    /** 
    27      * If Firebug Lite is included, re-route all OpenLayers.Console calls to the 
    28      * console object. 
     27     * If Firebug Lite is included (before this script), re-route all 
     28     * OpenLayers.Console calls to the console object. 
    2929     */ 
    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            } 
    3537        } 
    3638    }