Assorted missing requires

This commit is contained in:
Tim Schaub
2016-08-12 07:22:28 -06:00
parent 3afb42828f
commit 9d276982b5
57 changed files with 96 additions and 34 deletions

View File

@@ -148,7 +148,8 @@ ol.pointer.TouchSource.prototype.removePrimaryPointer_ = function(inPointer) {
* @private
*/
ol.pointer.TouchSource.prototype.resetClickCount_ = function() {
this.resetId_ = ol.global.setTimeout(
var global = ol.global;
this.resetId_ = global.setTimeout(
this.resetClickCountHandler_.bind(this),
ol.pointer.TouchSource.CLICK_COUNT_TIMEOUT);
};
@@ -167,8 +168,9 @@ ol.pointer.TouchSource.prototype.resetClickCountHandler_ = function() {
* @private
*/
ol.pointer.TouchSource.prototype.cancelResetClickCount_ = function() {
var global = ol.global;
if (this.resetId_ !== undefined) {
ol.global.clearTimeout(this.resetId_);
global.clearTimeout(this.resetId_);
}
};
@@ -440,7 +442,8 @@ ol.pointer.TouchSource.prototype.dedupSynthMouse_ = function(inEvent) {
var lt = [t.clientX, t.clientY];
lts.push(lt);
ol.global.setTimeout(function() {
var global = ol.global;
global.setTimeout(function() {
// remove touch after timeout
ol.array.remove(lts, lt);
}, ol.pointer.TouchSource.DEDUP_TIMEOUT);