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.1.beta12 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta13 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta10 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta11 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre19 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta8 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta9 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta6 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta7 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta5 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta2 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta4 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta3 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.beta1 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta1 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre17 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre18 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre14 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre16 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.0.pre15 app/javascript/js/controllers/self_destroy_controller.js