Use extends and super for format/JSONFeature

This commit is contained in:
ahocevar
2018-07-17 16:54:17 +02:00
parent 6a39b9f412
commit ad4e192ee9

View File

@@ -1,7 +1,6 @@
/**
* @module ol/format/JSONFeature
*/
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 JSON feature formats.
*
* @abstract
* @extends {module:ol/format/Feature}
*/
class JSONFeature {
class JSONFeature extends FeatureFormat {
constructor() {
FeatureFormat.call(this);
super();
}
/**
@@ -174,8 +172,6 @@ class JSONFeature {
writeGeometryObject(geometry, opt_options) {}
}
inherits(JSONFeature, FeatureFormat);
/**
* @param {Document|Node|Object|string} source Source.