Move DEDUP_TIMEOUT and CLICK_COUNT_TIMEOUT constants out of the instance

This commit is contained in:
Frederic Junod
2014-03-12 11:47:42 +01:00
committed by tsauerwein
parent fcb52d2361
commit f5b15f737f
2 changed files with 20 additions and 18 deletions

View File

@@ -47,8 +47,7 @@ describe('ol.pointer.MouseSource', function() {
it('dispatches real mouse events after timeout', function() {
// set the timeout to a lower value, to speed up the tests
var touchSource = handler.eventSourceList_[1];
touchSource.DEDUP_TIMEOUT = 100;
ol.pointer.TouchSource.DEDUP_TIMEOUT = 100;
goog.events.listen(handler, 'pointerdown', eventSpy);
@@ -99,3 +98,4 @@ goog.require('ol.BrowserFeature');
goog.require('ol.pointer.MouseSource');
goog.require('ol.pointer.PointerEvent');
goog.require('ol.pointer.PointerEventHandler');
goog.require('ol.pointer.TouchSource');