Replace console.time/timeEnd
This commit is contained in:
parent
6fbf3dd7c4
commit
413afab424
|
@ -27,7 +27,7 @@ if (oc_debug !== true || typeof console === "undefined" || typeof console.log ==
|
|||
if (!window.console) {
|
||||
window.console = {};
|
||||
}
|
||||
var methods = ['log', 'debug', 'warn', 'info', 'error', 'assert'];
|
||||
var methods = ['log', 'debug', 'warn', 'info', 'error', 'assert', 'time', 'timeEnd'];
|
||||
for (var i = 0; i < methods.length; i++) {
|
||||
console[methods[i]] = function () { };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue