Remove JSDoc to work around issue solved by typeof
This commit is contained in:
@@ -150,15 +150,7 @@ class DragAndDrop extends Interaction {
|
|||||||
const formatConstructors = this.formatConstructors_;
|
const formatConstructors = this.formatConstructors_;
|
||||||
let features = [];
|
let features = [];
|
||||||
for (let i = 0, ii = formatConstructors.length; i < ii; ++i) {
|
for (let i = 0, ii = formatConstructors.length; i < ii; ++i) {
|
||||||
/**
|
const format = new formatConstructors[i]();
|
||||||
* Avoid "cannot instantiate abstract class" error.
|
|
||||||
* @type {Function}
|
|
||||||
*/
|
|
||||||
const formatConstructor = formatConstructors[i];
|
|
||||||
/**
|
|
||||||
* @type {import("../format/Feature.js").default}
|
|
||||||
*/
|
|
||||||
const format = new formatConstructor();
|
|
||||||
features = this.tryReadFeatures_(format, result, {
|
features = this.tryReadFeatures_(format, result, {
|
||||||
featureProjection: projection
|
featureProjection: projection
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user