Sha256: 9563686b2d8ef851f9c1aeff33248b4d14e75dd6a11133aede6e6d2b80715aee
Contents?: true
Size: 334 Bytes
Versions: 55
Compression:
Stored size: 334 Bytes
Contents
class PgEventElement extends HTMLElement { connectedCallback () { const event = new MessageEvent(this.dataset.eventName, { bubbles: true, data: this }) this.dispatchEvent(event) } disconnectedCallback () { } } if (customElements.get('pg-event') === undefined) { customElements.define('pg-event', PgEventElement) }
Version data entries
55 entries across 55 versions & 1 rubygems