Use extends and super for format/XMLFeature
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
/**
|
||||
* @module ol/format/XMLFeature
|
||||
*/
|
||||
import {inherits} from '../util.js';
|
||||
import {extend} from '../array.js';
|
||||
import FeatureFormat from '../format/Feature.js';
|
||||
import FormatType from '../format/FormatType.js';
|
||||
@@ -14,18 +13,16 @@ import {isDocument, isNode, parse} from '../xml.js';
|
||||
* Base class for XML feature formats.
|
||||
*
|
||||
* @abstract
|
||||
* @extends {module:ol/format/Feature}
|
||||
*/
|
||||
class XMLFeature {
|
||||
class XMLFeature extends FeatureFormat {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
/**
|
||||
* @type {XMLSerializer}
|
||||
* @private
|
||||
*/
|
||||
this.xmlSerializer_ = new XMLSerializer();
|
||||
|
||||
FeatureFormat.call(this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -261,7 +258,5 @@ class XMLFeature {
|
||||
}
|
||||
}
|
||||
|
||||
inherits(XMLFeature, FeatureFormat);
|
||||
|
||||
|
||||
export default XMLFeature;
|
||||
|
||||
Reference in New Issue
Block a user