// Not dying on remnant console.log statements.
// We should switch this to a non-monkey-patch style.
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"];

  if (!window.console) {
    window.console = {};
  }
  for (var i = 0; i < names.length; ++i) {
    if (!window.console[names[i]]) {
      window.console[names[i]] = function() {}
    }
  }
}
