silverstripe-framework/thirdparty/jquery-validate/test/firebug/firebugx.js
2009-11-21 02:26:09 +00:00

10 lines
350 B
JavaScript

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