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

Version Path
pg_rails-7.6.23 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.22 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.22.pre.3 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.22.pre.2 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.22.pre.1 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.11 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.10 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.9 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.8 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.7 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.6 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.5 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.4 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.3 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.2 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.21.pre.1 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.20 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.19 pg_layout/app/javascript/elements/pg_event.js
pg_rails-7.6.18 pg_layout/app/javascript/elements/pg_event.js