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

@@ -206,7 +206,7 @@ class Draw extends PointerInteraction {
this.downPx_ = null;
/**
* @type {number|undefined}
* @type {any}
* @private
*/
this.downTimeout_;
@@ -912,7 +912,7 @@ function handleDownEvent(event) {
return true;
} else if (this.condition_(event)) {
this.lastDragTime_ = Date.now();
this.downTimeout_ = window.setTimeout(function() {
this.downTimeout_ = setTimeout(function() {
this.handlePointerMove_(new MapBrowserPointerEvent(
MapBrowserEventType.POINTERMOVE, event.map, event.pointerEvent, false, event.frameState));
}.bind(this), this.dragVertexDelay_);