PageRenderTime 20ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/timeplot/lib/firebug/firebugx.js

http://showslow.googlecode.com/
JavaScript | 10 lines | 8 code | 2 blank | 0 comment | 3 complexity | 5a7d11ab3059e411319aab1e729df97c MD5 | raw file
  1. if (!("console" in window) || !("firebug" in console))
  2. {
  3. var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
  4. "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
  5. window.console = {};
  6. for (var i = 0; i < names.length; ++i)
  7. window.console[names[i]] = function() {}
  8. }