Move function declaration out of the constructor

This commit is contained in:
Frederic Junod
2014-03-17 12:25:39 +01:00
parent 23e1e6e0f4
commit 395fdf9bbf

View File

@@ -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
*/