Assert that timeout reset ids are not overridden

This commit is contained in:
tsauerwein
2014-03-13 12:17:41 +01:00
parent d170281354
commit 1a477b8f32

View File

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