Use extends and super for format/TextFeature

This commit is contained in:
ahocevar
2018-07-17 17:14:14 +02:00
parent 9b2b921f7b
commit c969afcddc

View File

@@ -1,7 +1,6 @@
/**
* @module ol/format/TextFeature
*/
import {inherits} from '../util.js';
import FeatureFormat from '../format/Feature.js';
import FormatType from '../format/FormatType.js';
@@ -12,11 +11,10 @@ import FormatType from '../format/FormatType.js';
* Base class for text feature formats.
*
* @abstract
* @extends {module:ol/format/Feature}
*/
class TextFeature {
class TextFeature extends FeatureFormat {
constructor() {
FeatureFormat.call(this);
super();
}
/**
@@ -165,8 +163,6 @@ class TextFeature {
writeGeometryText(geometry, opt_options) {}
}
inherits(TextFeature, FeatureFormat);
/**
* @param {Document|Node|Object|string} source Source.