mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2291 from jakemac53/isDebouncerActive
make isDebouncerActive actually return a bool
This commit is contained in:
commit
e81145c114
@ -66,9 +66,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
called++;
|
||||
};
|
||||
|
||||
assert(window.el1.isDebouncerActive('foo') === false);
|
||||
window.el1.debounce('foo', cb);
|
||||
window.el1.debounce('foo', cb);
|
||||
window.el1.debounce('foo', cb);
|
||||
assert(window.el1.isDebouncerActive('foo') === true);
|
||||
|
||||
setTimeout(function() {
|
||||
assert.equal(called, 1, 'debounce should be called exactly once');
|
||||
|
Loading…
Reference in New Issue
Block a user