diff --git a/test/unit/debounce.html b/test/unit/debounce.html index fbb330753c..b380a62185 100644 --- a/test/unit/debounce.html +++ b/test/unit/debounce.html @@ -214,7 +214,6 @@ const testEnqueue = (shouldFlush, done) => { const actualOrder = []; - let i=1; const enqueue = (type, {db, cb} = {}) => { cb = cb || (() => actualOrder.push(cb)); db = Polymer.Debouncer.debounce(db, type, cb); diff --git a/types/lib/utils/debounce.d.ts b/types/lib/utils/debounce.d.ts index ceb853ef08..57bf1846ac 100644 --- a/types/lib/utils/debounce.d.ts +++ b/types/lib/utils/debounce.d.ts @@ -68,6 +68,11 @@ declare namespace Polymer { */ cancel(): void; + /** + * Cancels a debouncer's async callback. + */ + _cancelAsync(): void; + /** * Flushes an active debouncer and returns a reference to itself. */