From 26f1cba808189f8803a375eacbdb44d8d04d9bac Mon Sep 17 00:00:00 2001 From: Kevin Schmidt Date: Mon, 1 Oct 2018 10:24:55 -0600 Subject: [PATCH] Remove JSDoc to work around issue solved by typeof --- src/ol/interaction/DragAndDrop.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/ol/interaction/DragAndDrop.js b/src/ol/interaction/DragAndDrop.js index 4ecb0a0d1e..253878d3bd 100644 --- a/src/ol/interaction/DragAndDrop.js +++ b/src/ol/interaction/DragAndDrop.js @@ -150,15 +150,7 @@ class DragAndDrop extends Interaction { const formatConstructors = this.formatConstructors_; let features = []; for (let i = 0, ii = formatConstructors.length; i < ii; ++i) { - /** - * Avoid "cannot instantiate abstract class" error. - * @type {Function} - */ - const formatConstructor = formatConstructors[i]; - /** - * @type {import("../format/Feature.js").default} - */ - const format = new formatConstructor(); + const format = new formatConstructors[i](); features = this.tryReadFeatures_(format, result, { featureProjection: projection });