Use setTimeout with any return type
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user