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
@@ -135,12 +135,12 @@ ol.Geolocation.prototype.handleTrackingChanged_ = function() {
|
||||
if (ol.has.GEOLOCATION) {
|
||||
var tracking = this.getTracking();
|
||||
if (tracking && this.watchId_ === undefined) {
|
||||
this.watchId_ = goog.global.navigator.geolocation.watchPosition(
|
||||
this.watchId_ = ol.global.navigator.geolocation.watchPosition(
|
||||
this.positionChange_.bind(this),
|
||||
this.positionError_.bind(this),
|
||||
this.getTrackingOptions());
|
||||
} else if (!tracking && this.watchId_ !== undefined) {
|
||||
goog.global.navigator.geolocation.clearWatch(this.watchId_);
|
||||
ol.global.navigator.geolocation.clearWatch(this.watchId_);
|
||||
this.watchId_ = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user