Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
notifyInteracted: () =>
emitCustomEvent(
this.$el,
MDCTabFoundation.strings.INTERACTED_EVENT,
{ tabId: this.id },
true /* bubble */,
),
getOffsetLeft: () => this.$el.offsetLeft,
notifyInteracted: () => this.dispatchEvent(
new CustomEvent(MDCTabFoundation.strings.INTERACTED_EVENT, {
detail: {tabId: this.id},
bubbles: true,
composed: true,
cancelable: true,
})),
getOffsetLeft: () => this.offsetLeft,