Move function declaration out of the constructor
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user