From 395fdf9bbf6f32b8b5cdd8e858f3ca1e27f52183 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 17 Mar 2014 12:25:39 +0100 Subject: [PATCH] Move function declaration out of the constructor --- src/ol/pointer/touchsource.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 */