From 57a6fbf41600a03741b2e18f8021d85d5fdfaaaf Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 13 May 2014 17:41:58 -0600 Subject: [PATCH] Call resetClickCountHandler_ with proper this argument --- src/ol/pointer/touchsource.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/pointer/touchsource.js b/src/ol/pointer/touchsource.js index db7351855c..3dc5ba9ce3 100644 --- a/src/ol/pointer/touchsource.js +++ b/src/ol/pointer/touchsource.js @@ -149,7 +149,8 @@ ol.pointer.TouchSource.prototype.removePrimaryPointer_ = function(inPointer) { * @private */ ol.pointer.TouchSource.prototype.resetClickCount_ = function() { - this.resetId_ = goog.global.setTimeout(this.resetClickCountHandler_, + this.resetId_ = goog.global.setTimeout( + goog.bind(this.resetClickCountHandler_, this), ol.pointer.TouchSource.CLICK_COUNT_TIMEOUT); };