Remove remaining use of inherits in src
This commit is contained in:
+16
-18
@@ -23,24 +23,24 @@ import {assign} from '../obj.js';
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
* Abstract base class; normally only used for creating subclasses and not
|
||||
* instantiated in apps.
|
||||
* Note that with {@link module:ol/layer/Base} and all its subclasses, any property set in
|
||||
* the options is set as a {@link module:ol/Object} property on the layer object, so
|
||||
* is observable, and has get/set accessors.
|
||||
*
|
||||
* @constructor
|
||||
* @abstract
|
||||
* @extends {module:ol/Object}
|
||||
* @param {module:ol/layer/Base~Options} options Layer options.
|
||||
* @api
|
||||
*/
|
||||
class BaseLayer {
|
||||
class BaseLayer extends BaseObject {
|
||||
/**
|
||||
* @classdesc
|
||||
* Abstract base class; normally only used for creating subclasses and not
|
||||
* instantiated in apps.
|
||||
* Note that with {@link module:ol/layer/Base} and all its subclasses, any property set in
|
||||
* the options is set as a {@link module:ol/Object} property on the layer object, so
|
||||
* is observable, and has get/set accessors.
|
||||
*
|
||||
* @constructor
|
||||
* @abstract
|
||||
* @extends {module:ol/Object}
|
||||
* @param {module:ol/layer/Base~Options} options Layer options.
|
||||
* @api
|
||||
*/
|
||||
constructor(options) {
|
||||
|
||||
BaseObject.call(this);
|
||||
super();
|
||||
|
||||
/**
|
||||
* @type {Object.<string, *>}
|
||||
@@ -249,7 +249,5 @@ class BaseLayer {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(BaseLayer, BaseObject);
|
||||
|
||||
|
||||
export default BaseLayer;
|
||||
|
||||
Reference in New Issue
Block a user