Sha256: 21bf489a439cb7a64d50085498c29e052c988308c6e5b0b8f1ccc81a0b9a9024

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

(() => {
  const application = Stimulus.Application.start()

  application.register("modal", class extends Stimulus.Controller {
    static get targets() {
      return []
    }

    connect() {
      this.element[this.identifier] = this
    }

    close() {
      document.querySelector('body').removeChild(this.element)
    }

  })
})()

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spina-2.0.2 app/assets/javascripts/spina/admin/controllers/modal_controller.js
spina-2.0.1 app/assets/javascripts/spina/admin/controllers/modal_controller.js
spina-2.0.0 app/assets/javascripts/spina/admin/controllers/modal_controller.js
spina-2.0.0.beta app/assets/javascripts/spina/admin/controllers/modal_controller.js
spina-2.0.0.alpha app/assets/javascripts/spina/admin/controllers/modal_controller.js