Sha256: 8416b533e464f0b1fa1fdda5ad8aee2a8483ef4a1d9a0db910d2b2c68677126d

Contents?: true

Size: 145 Bytes

Versions: 131

Compression:

Stored size: 145 Bytes

Contents

import { Controller } from '@hotwired/stimulus'

export default class extends Controller {
  destroy() {
    this.context.element.remove()
  }
}

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
avo-3.0.0.pre13 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre12 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre10 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre11 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre8 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre9 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre7 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre5 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre6 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre4 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre3 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre2 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre1 app/javascript/js/controllers/self_destroy_controller.js
avo-3.2.2 app/javascript/js/controllers/self_destroy_controller.js
avo-3.2.1 app/javascript/js/controllers/self_destroy_controller.js
avo-3.2.0 app/javascript/js/controllers/self_destroy_controller.js
avo-3.1.7 app/javascript/js/controllers/self_destroy_controller.js
avo-3.1.6 app/javascript/js/controllers/self_destroy_controller.js
avo-3.1.5 app/javascript/js/controllers/self_destroy_controller.js
avo-3.1.4 app/javascript/js/controllers/self_destroy_controller.js