summaryrefslogtreecommitdiff
path: root/docroot/lib/firebug/firebugx.js
blob: 5a467fc14389a4558eca75c842ab224d5ac268cb (plain)
1
2
3
4
5
6
7
8
9
10
if (!("console" in window) || !("firebug" in console))
{
    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() {}
}