Remove goog.global (#5178)
* Remove goog.global
* Correct externs location
* Use Function('return this')
* Remove global externs
This commit is contained in:
committed by
Andreas Hocevar
parent
6efd3dab0b
commit
cd6494149b
@@ -148,7 +148,7 @@ ol.pointer.TouchSource.prototype.removePrimaryPointer_ = function(inPointer) {
|
||||
* @private
|
||||
*/
|
||||
ol.pointer.TouchSource.prototype.resetClickCount_ = function() {
|
||||
this.resetId_ = goog.global.setTimeout(
|
||||
this.resetId_ = ol.global.setTimeout(
|
||||
this.resetClickCountHandler_.bind(this),
|
||||
ol.pointer.TouchSource.CLICK_COUNT_TIMEOUT);
|
||||
};
|
||||
@@ -168,7 +168,7 @@ ol.pointer.TouchSource.prototype.resetClickCountHandler_ = function() {
|
||||
*/
|
||||
ol.pointer.TouchSource.prototype.cancelResetClickCount_ = function() {
|
||||
if (this.resetId_ !== undefined) {
|
||||
goog.global.clearTimeout(this.resetId_);
|
||||
ol.global.clearTimeout(this.resetId_);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -440,7 +440,7 @@ ol.pointer.TouchSource.prototype.dedupSynthMouse_ = function(inEvent) {
|
||||
var lt = [t.clientX, t.clientY];
|
||||
lts.push(lt);
|
||||
|
||||
goog.global.setTimeout(function() {
|
||||
ol.global.setTimeout(function() {
|
||||
// remove touch after timeout
|
||||
ol.array.remove(lts, lt);
|
||||
}, ol.pointer.TouchSource.DEDUP_TIMEOUT);
|
||||
|
||||
Reference in New Issue
Block a user