From 76035fea0216157ee4f68ec9a7e14d20f3a4dc1a Mon Sep 17 00:00:00 2001 From: "ala'n (Alexey Stsefanovich)" Date: Thu, 28 Jan 2021 16:28:40 +0300 Subject: [PATCH] fix: fix ESLMedia events prefix --- src/modules/esl-media/core/esl-media.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/esl-media/core/esl-media.ts b/src/modules/esl-media/core/esl-media.ts index fb190158c..207e6f3e6 100644 --- a/src/modules/esl-media/core/esl-media.ts +++ b/src/modules/esl-media/core/esl-media.ts @@ -21,7 +21,7 @@ import {TraversingQuery} from '../../esl-traversing-query/core'; @ExportNs('Media') export class ESLMedia extends ESLBaseElement { public static is = 'esl-media'; - public static eventNs = 'esl:media'; + public static eventNs = 'esl:media:'; @attr() public mediaId: string; @attr() public mediaSrc: string; @@ -343,8 +343,8 @@ export class ESLMedia extends ESLBaseElement { } public $$fire(eventName: string, eventInit?: CustomEventInit): boolean { - const name = (this.constructor as typeof ESLMedia).eventNs + eventName; - return ESLBaseElement.$$fire(this, name, eventInit); + const ns = (this.constructor as typeof ESLMedia).eventNs; + return ESLBaseElement.$$fire(this, ns + eventName, eventInit); } }