Sha256: 43374e2688b672de1f88fea62edb54225afccf3f9be478e899e9ec82c393896f

Contents?: true

Size: 248 Bytes

Versions: 3

Compression:

Stored size: 248 Bytes

Contents

import { Controller } from "stimulus"

export default class extends Controller {

  connect() {
    const event = document.createEvent("CustomEvent")
    event.initCustomEvent("exists", true, true, null)
    this.element.dispatchEvent(event)
  }

}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spina-2.2.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.1.1 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.1.0 app/assets/javascripts/spina/controllers/exists_controller.js