author | Dan |
Sat, 19 Jul 2008 20:47:00 -0400 | |
changeset 645 | 24f2fa13a2a0 |
parent 551 | 3acd624d4f4f |
permissions | -rw-r--r-- |
551 | 1 |
|
2 |
if (!("console" in window) || !("firebug" in console)) |
|
3 |
{ |
|
4 |
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", |
|
5 |
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; |
|
6 |
||
7 |
window.console = {}; |
|
8 |
for (var i = 0; i < names.length; ++i) |
|
9 |
window.console[names[i]] = function() {} |
|
10 |
} |