Assert that timeout reset ids are not overridden
This commit is contained in:
@@ -156,6 +156,7 @@ ol.pointer.TouchSource.prototype.removePrimaryPointer_ = function(inPointer) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.pointer.TouchSource.prototype.resetClickCount_ = function() {
|
ol.pointer.TouchSource.prototype.resetClickCount_ = function() {
|
||||||
|
goog.asserts.assert(!goog.isDef(this.resetId_));
|
||||||
this.resetId_ = goog.global.setTimeout(this.resetClickCountHandler_,
|
this.resetId_ = goog.global.setTimeout(this.resetClickCountHandler_,
|
||||||
ol.pointer.TouchSource.CLICK_COUNT_TIMEOUT);
|
ol.pointer.TouchSource.CLICK_COUNT_TIMEOUT);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user