2017-03-15 00:26:01 +00:00
|
|
|
// Avoid `console` errors in browsers that lack a console.
|
2020-04-28 06:58:26 +00:00
|
|
|
(function () {
|
2017-03-15 00:26:01 +00:00
|
|
|
var method;
|
|
|
|
var noop = function () {};
|
|
|
|
var methods = [
|
2020-04-28 06:58:26 +00:00
|
|
|
"assert",
|
|
|
|
"clear",
|
|
|
|
"count",
|
|
|
|
"debug",
|
|
|
|
"dir",
|
|
|
|
"dirxml",
|
|
|
|
"error",
|
|
|
|
"exception",
|
|
|
|
"group",
|
|
|
|
"groupCollapsed",
|
|
|
|
"groupEnd",
|
|
|
|
"info",
|
|
|
|
"log",
|
|
|
|
"markTimeline",
|
|
|
|
"profile",
|
|
|
|
"profileEnd",
|
|
|
|
"table",
|
|
|
|
"time",
|
|
|
|
"timeEnd",
|
|
|
|
"timeline",
|
|
|
|
"timelineEnd",
|
|
|
|
"timeStamp",
|
|
|
|
"trace",
|
|
|
|
"warn"
|
2017-03-15 00:26:01 +00: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;
|
|
|
|
}
|
|
|
|
}
|
2020-04-28 06:58:26 +00:00
|
|
|
})();
|
2017-03-15 00:26:01 +00:00
|
|
|
|
|
|
|
// Place any jQuery/helper plugins in here.
|