Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 28, 2019
1 parent be1afac commit cc6ef0e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/unit/debounce.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,7 @@
const actualOrder = [];
let i=1;
const enqueue = (type, {db, cb} = {}) => {
// cb = cb || (() => actualOrder.push(cb));
if (!cb) {
cb = (() => actualOrder.push(cb));
Object.defineProperty(cb, 'name', {value: `db${i}`}); i++;
}
cb = cb || (() => actualOrder.push(cb));
db = Debouncer.debounce(db, type, cb);
enqueueDebouncer(db);
return {db, cb};
Expand Down

0 comments on commit cc6ef0e

Please sign in to comment.