Merge pull request #2065 from tschaub/global-leak

Properly reset the click count in ol.pointer.TouchSource.
This commit is contained in:
Tim Schaub
2014-05-13 22:38:30 -06:00

View File

@@ -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);
};