From 28aa1248c2c901aa4a2d9eb8236fe0ab401aea66 Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Tue, 14 Aug 2018 19:08:45 -0700 Subject: [PATCH 1/2] Use simpler class declaration and export form --- lib/utils/debounce.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/debounce.js b/lib/utils/debounce.js index 1ba103cd88..d3d74df9fa 100644 --- a/lib/utils/debounce.js +++ b/lib/utils/debounce.js @@ -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; From 3db71bc1a1efd8bfc9cacec4eb06aff632d49304 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Wed, 15 Aug 2018 15:41:25 +0200 Subject: [PATCH 2/2] Fix linter warning --- lib/utils/debounce.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/debounce.js b/lib/utils/debounce.js index d3d74df9fa..5215cc27c1 100644 --- a/lib/utils/debounce.js +++ b/lib/utils/debounce.js @@ -111,4 +111,4 @@ export class Debouncer { debouncer.setConfig(asyncModule, callback); return debouncer; } -}; +}