2012-09-10 01:37:46 +02:00
|
|
|
// Avoid `console` errors in browsers that lack a console.
|
2012-11-28 12:09:54 +01:00
|
|
|
(function() {
|
|
|
|
var method;
|
2013-02-09 04:10:33 +01:00
|
|
|
var noop = function () {};
|
2012-11-28 12:09:54 +01:00
|
|
|
var methods = [
|
|
|
|
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
|
|
|
|
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
|
|
|
|
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
|
2014-07-28 00:44:34 +02:00
|
|
|
'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn'
|
2012-11-28 12:09:54 +01:00
|
|
|
];
|
|
|
|
var length = methods.length;
|
|
|
|
var console = (window.console = window.console || {});
|
|
|
|
|
|
|
|
while (length--) {
|
|
|
|
method = methods[length];
|
|
|
|
|
|
|
|
// Only stub undefined methods.
|
|
|
|
if (!console[method]) {
|
|
|
|
console[method] = noop;
|
2012-09-10 01:37:46 +02:00
|
|
|
}
|
2012-11-28 12:09:54 +01:00
|
|
|
}
|
2013-10-09 12:30:53 +02:00
|
|
|
}());
|
|
|
|
|
|
|
|
// Place any jQuery/helper plugins in here.
|