Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -33,7 +33,7 @@ ol.ObjectEventType = {
|
||||
* @constructor
|
||||
*/
|
||||
ol.ObjectEvent = function(type, key, oldValue) {
|
||||
goog.base(this, type);
|
||||
ol.events.Event.call(this, type);
|
||||
|
||||
/**
|
||||
* The name of the property whose value is changing.
|
||||
@@ -51,7 +51,7 @@ ol.ObjectEvent = function(type, key, oldValue) {
|
||||
this.oldValue = oldValue;
|
||||
|
||||
};
|
||||
goog.inherits(ol.ObjectEvent, ol.events.Event);
|
||||
ol.inherits(ol.ObjectEvent, ol.events.Event);
|
||||
|
||||
|
||||
/**
|
||||
@@ -100,7 +100,7 @@ goog.inherits(ol.ObjectEvent, ol.events.Event);
|
||||
* @api
|
||||
*/
|
||||
ol.Object = function(opt_values) {
|
||||
goog.base(this);
|
||||
ol.Observable.call(this);
|
||||
|
||||
// Call goog.getUid to ensure that the order of objects' ids is the same as
|
||||
// the order in which they were created. This also helps to ensure that
|
||||
@@ -118,7 +118,7 @@ ol.Object = function(opt_values) {
|
||||
this.setProperties(opt_values);
|
||||
}
|
||||
};
|
||||
goog.inherits(ol.Object, ol.Observable);
|
||||
ol.inherits(ol.Object, ol.Observable);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user