Sha256: cb7406ccce0ba7f2e6fb77d0e13686526e0e3e2c4cfaf6b19900662541843657

Contents?: true

Size: 258 Bytes

Versions: 28

Compression:

Stored size: 258 Bytes

Contents

import { Controller } from "@hotwired/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

28 entries across 28 versions & 1 rubygems

Version Path
spina-2.19.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.18.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.17.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.16.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.15.1 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.15.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.14.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.13.1 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.13.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.12.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.11.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.10.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.9.1 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.9.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.8.1 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.8.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.7.0 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.6.2 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.6.1 app/assets/javascripts/spina/controllers/exists_controller.js
spina-2.6.0 app/assets/javascripts/spina/controllers/exists_controller.js