From 1a477b8f32b54972570e65250b36b4a3f6c59b23 Mon Sep 17 00:00:00 2001 From: tsauerwein Date: Thu, 13 Mar 2014 12:17:41 +0100 Subject: [PATCH] Assert that timeout reset ids are not overridden --- src/ol/pointer/touchsource.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/pointer/touchsource.js b/src/ol/pointer/touchsource.js index 1a78153f01..f5e4ea4377 100644 --- a/src/ol/pointer/touchsource.js +++ b/src/ol/pointer/touchsource.js @@ -156,6 +156,7 @@ ol.pointer.TouchSource.prototype.removePrimaryPointer_ = function(inPointer) { * @private */ ol.pointer.TouchSource.prototype.resetClickCount_ = function() { + goog.asserts.assert(!goog.isDef(this.resetId_)); this.resetId_ = goog.global.setTimeout(this.resetClickCountHandler_, ol.pointer.TouchSource.CLICK_COUNT_TIMEOUT); };