Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -59,7 +59,7 @@ ol.GeolocationProperty = {
|
||||
*/
|
||||
ol.Geolocation = function(opt_options) {
|
||||
|
||||
goog.base(this);
|
||||
ol.Object.call(this);
|
||||
|
||||
var options = opt_options || {};
|
||||
|
||||
@@ -99,7 +99,7 @@ ol.Geolocation = function(opt_options) {
|
||||
this.setTracking(options.tracking !== undefined ? options.tracking : false);
|
||||
|
||||
};
|
||||
goog.inherits(ol.Geolocation, ol.Object);
|
||||
ol.inherits(ol.Geolocation, ol.Object);
|
||||
|
||||
|
||||
/**
|
||||
@@ -107,7 +107,7 @@ goog.inherits(ol.Geolocation, ol.Object);
|
||||
*/
|
||||
ol.Geolocation.prototype.disposeInternal = function() {
|
||||
this.setTracking(false);
|
||||
goog.base(this, 'disposeInternal');
|
||||
ol.Object.prototype.disposeInternal.call(this);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user