Skip to content

Commit

Permalink
Use simpler class declaration and export form (#5325)
Browse files Browse the repository at this point in the history
* Use simpler class declaration and export form

* Fix linter warning
  • Loading branch information
rictic authored and TimvdLippe committed Aug 15, 2018
1 parent 438c8c4 commit 6dc0184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/debounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import './async.js';
/**
* @summary Collapse multiple callbacks into one invocation after a timer.
*/
export const Debouncer = class Debouncer {
export class Debouncer {
constructor() {
this._asyncModule = null;
this._callback = null;
Expand Down Expand Up @@ -111,4 +111,4 @@ export const Debouncer = class Debouncer {
debouncer.setConfig(asyncModule, callback);
return debouncer;
}
};
}

0 comments on commit 6dc0184

Please sign in to comment.