Remove remaining use of inherits in src

This commit is contained in:
Tim Schaub
2018-07-17 23:43:10 -06:00
parent f6046c023c
commit 1a5cf52b61
63 changed files with 837 additions and 982 deletions
+13 -15
View File
@@ -40,18 +40,18 @@ const Property = {
};
/**
* @classdesc
* A {@link module:ol/Collection~Collection} of layers that are handled together.
*
* A generic `change` event is triggered when the group/Collection changes.
*
* @constructor
* @extends {module:ol/layer/Base}
* @param {module:ol/layer/Group~Options=} opt_options Layer options.
* @api
*/
class LayerGroup {
class LayerGroup extends BaseLayer {
/**
* @classdesc
* A {@link module:ol/Collection~Collection} of layers that are handled together.
*
* A generic `change` event is triggered when the group/Collection changes.
*
* @constructor
* @extends {module:ol/layer/Base}
* @param {module:ol/layer/Group~Options=} opt_options Layer options.
* @api
*/
constructor(opt_options) {
const options = opt_options || {};
@@ -60,7 +60,7 @@ class LayerGroup {
let layers = options.layers;
BaseLayer.call(this, baseOptions);
super(baseOptions);
/**
* @private
@@ -236,7 +236,5 @@ class LayerGroup {
}
}
inherits(LayerGroup, BaseLayer);
export default LayerGroup;