diff --git a/src/ol/format/TextFeature.js b/src/ol/format/TextFeature.js index 953763ecf1..a1bb7c965c 100644 --- a/src/ol/format/TextFeature.js +++ b/src/ol/format/TextFeature.js @@ -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.