[OpenLayers-Commits] r11530 - trunk/openlayers/lib/Firebug

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Fri Feb 25 11:40:23 EST 2011


Author: erilem
Date: 2011-02-25 08:40:19 -0800 (Fri, 25 Feb 2011)
New Revision: 11530

Modified:
   trunk/openlayers/lib/Firebug/firebugx.js
Log:
firebugx.js sets window.i, no functional change, p=aabt,me (closes #3116)

Modified: trunk/openlayers/lib/Firebug/firebugx.js
===================================================================
--- trunk/openlayers/lib/Firebug/firebugx.js	2011-02-25 16:28:57 UTC (rev 11529)
+++ trunk/openlayers/lib/Firebug/firebugx.js	2011-02-25 16:40:19 UTC (rev 11530)
@@ -1,9 +1,10 @@
+(function() {
+    if (!window.console || !console.firebug) {
+        var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
+        "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
 
-if (!window.console || !console.firebug) {
-    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
-    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
-
-    window.console = {};
-    for (var i = 0; i < names.length; ++i)
-        window.console[names[i]] = function() {}
-}
+        window.console = {};
+        for (var i = 0; i < names.length; ++i)
+            window.console[names[i]] = function() {}
+    }
+})();



More information about the Commits mailing list