Skip to content

Commit

Permalink
fix: fix ESLMedia events prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Jan 28, 2021
1 parent 51a80a2 commit 76035fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/esl-media/core/esl-media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 76035fe

Please sign in to comment.