diff --git a/lib/OpenLayers/Console.js b/lib/OpenLayers/Console.js index f87da26c9e..62ed03394d 100644 --- a/lib/OpenLayers/Console.js +++ b/lib/OpenLayers/Console.js @@ -8,21 +8,190 @@ * calls to OpenLayers.Console methods will get redirected to window.console. * This makes use of the Firebug extension where available and allows for * cross-browser debugging Firebug style. + * + * Note that behavior will differ with the Firebug extention and Firebug Lite. + * Most notably, the Firebug Lite console does not currently allow for + * hyperlinks to code or for clicking on object to explore their properties. + * + * @fileoverview Error logging and debugging console */ -OpenLayers.Console = {}; -(function() { +OpenLayers.Console = { /** * Create empty functions for all console methods. The real value of these * properties will be set if Firebug Lite (../Firebug/firebug.js script) is * included. We explicitly require the Firebug Lite script to trigger * functionality of the OpenLayers.Console methods. */ - var methods = ['log', 'debug', 'info', 'warn', 'error', 'assert', - 'dir', 'dirxml', 'trace', 'group', 'groupEnd', 'time', - 'timeEnd', 'profile', 'profileEnd', 'count']; - for(var i=0; i