includes/clientside/firebug/firebugx.js
author Dan
Mon, 14 Apr 2008 21:59:53 -0400
changeset 534 6be4b47aa247
parent 509 175df10e0b56
child 551 3acd624d4f4f
permissions -rw-r--r--
Added template_compile_subst hook
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
509
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     1
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     2
if (!("console" in window) || !("firebug" in console))
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     3
{
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     4
    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     5
    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     6
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     7
    window.console = {};
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     8
    for (var i = 0; i < names.length; ++i)
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
     9
        window.console[names[i]] = function() {}
175df10e0b56 Added a copy of Firebug Lite for debugging purposes. License is uncertain but being treated as MPL. (If is is not MPL then it is under something more permissive that permits relicensing anyway)
Dan
parents:
diff changeset
    10
}