From eac277f1066c6217ef16264a299b030e03e0e2a7 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 14 Jun 2007 18:35:02 +0000 Subject: [PATCH] #764 - add documentation for OpenLayers.Console methods git-svn-id: http://svn.openlayers.org/trunk/openlayers@3327 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Console.js | 185 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 177 insertions(+), 8 deletions(-) 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