diff --git a/src/ol/pointer/touchsource.js b/src/ol/pointer/touchsource.js index 5960069a51..30f12db8ef 100644 --- a/src/ol/pointer/touchsource.js +++ b/src/ol/pointer/touchsource.js @@ -82,15 +82,6 @@ ol.pointer.TouchSource = function(dispatcher, mouseSource) { * @type {number|undefined} */ this.resetId_ = undefined; - - /** - * @private - * @type {function()} - */ - this.resetClickCountHandler_ = goog.bind(function() { - this.clickCount_ = 0; - this.resetId_ = undefined; - }, this); }; goog.inherits(ol.pointer.TouchSource, ol.pointer.EventSource); @@ -165,6 +156,15 @@ ol.pointer.TouchSource.prototype.resetClickCount_ = function() { }; +/** + * @private + */ +ol.pointer.TouchSource.prototype.resetClickCountHandler_ = function() { + this.clickCount_ = 0; + this.resetId_ = undefined; +}; + + /** * @private */