doc.silverstripe.org/sapphire/thirdparty/firebug-lite/firebugx.js
2011-04-10 21:53:26 +00:00

10 lines
336 B
JavaScript

if (!window.console || !console.firebug)
{
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() {}
}