includes/clientside/firebug/firebugx.js
author Dan
Sat, 29 Mar 2008 15:58:59 -0700
changeset 513 c15fbf197a54
parent 509 175df10e0b56
child 551 3acd624d4f4f
permissions -rw-r--r--
AJAX interface for listing ACL rules implemented
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
}