Use setTimeout with any return type

This commit is contained in:
ahocevar
2018-10-03 10:50:44 +02:00
parent b6846d6b3d
commit 3f79edba67
3 changed files with 11 additions and 11 deletions

View File

@@ -137,9 +137,9 @@ class TouchSource extends EventSource {
/**
* @private
* @type {number|undefined}
* @type {any}
*/
this.resetId_ = undefined;
this.resetId_;
/**
* Mouse event timeout: This should be long enough to
@@ -187,7 +187,7 @@ class TouchSource extends EventSource {
* @private
*/
resetClickCount_() {
this.resetId_ = window.setTimeout(
this.resetId_ = setTimeout(
this.resetClickCountHandler_.bind(this),
CLICK_COUNT_TIMEOUT);
}