Skip to content

Commit

Permalink
fix: performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gxcsoccer authored and Qix- committed Oct 10, 2018
1 parent 9a6d8c2 commit f312a89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ function setup(env) {
var prevTime;

function debug() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}

// Disabled?
if (!debug.enabled) {
return;
}

for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}

var self = debug; // Set `diff` timestamp

var curr = Number(new Date());
Expand Down

0 comments on commit f312a89

Please sign in to comment.