includes/clientside/firebug/src/firebugx.js
author Dan
Sat, 29 Nov 2008 00:20:57 -0500
changeset 756 e8cf18383425
parent 551 3acd624d4f4f
permissions -rw-r--r--
Added a new search API that allows much easier registration of search results. Basically you give the engine a table, a few columns to look at, and tell it how to format the results and you're done.


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() {}
}