silverstripe-framework/thirdparty/firebug-lite/firebugx.js
Ingo Schommer 70af168f6a MINOR Added sapphire/thirdparty/firebug-lite (from r92496)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@93543 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 14:17:43 +13: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() {}
}