From cee529d742dab37c44c671b23e53c055e91ef560 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 25 Nov 2021 12:22:24 +0100 Subject: [PATCH] fix(StepIndicator): fix TypeScript private event emitter warning --- packages/dnb-eufemia/src/shared/EventEmitter.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/dnb-eufemia/src/shared/EventEmitter.js b/packages/dnb-eufemia/src/shared/EventEmitter.js index be0a10954a1..56b87ba2e12 100644 --- a/packages/dnb-eufemia/src/shared/EventEmitter.js +++ b/packages/dnb-eufemia/src/shared/EventEmitter.js @@ -14,6 +14,10 @@ */ class EventEmitter { + static createInstance(id) { + return new EventEmitter(id) + } + constructor(id) { scope.__EEE__ = scope.__EEE__ || {} if (!scope.__EEE__[id]) { @@ -75,8 +79,4 @@ class EventEmitter { const scope = typeof window !== 'undefined' ? window : EventEmitter -function createInstance(id) { - return new EventEmitter(id) -} - -export default { createInstance } +export default EventEmitter