ensure isDebouncerActive returns a Boolean

This commit is contained in:
Stefan Grönke 2015-07-30 20:17:58 +02:00 committed by Daniel Freedman
parent 0206852575
commit 391649341b

View File

@ -52,7 +52,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
*/
isDebouncerActive: function(jobName) {
var debouncer = this._debouncers[jobName];
return debouncer && debouncer.finish;
return !!(debouncer && debouncer.finish);
},
/**