diff options
Diffstat (limited to 'misc/openlayers/lib/Firebug/firebugx.js')
-rw-r--r-- | misc/openlayers/lib/Firebug/firebugx.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/openlayers/lib/Firebug/firebugx.js b/misc/openlayers/lib/Firebug/firebugx.js new file mode 100644 index 0000000..f0a34df --- /dev/null +++ b/misc/openlayers/lib/Firebug/firebugx.js @@ -0,0 +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"]; + + window.console = {}; + for (var i = 0; i < names.length; ++i) + window.console[names[i]] = function() {} + } +})(); |