Sha256: a14c5b8dbed48352786a663a0aa666655963a37b2267f6e0093a8b82b10a2dc6
Contents?: true
Size: 373 Bytes
Versions: 71
Compression:
Stored size: 373 Bytes
Contents
import { Controller } from '@hotwired/stimulus' // Connects to data-controller="clear-timeout" export default class extends Controller { connect () { this.element.dataset.timeoutId.split(',').forEach((el) => { const timeoutId = parseInt(el) clearTimeout(timeoutId) console.log(`clearedTimeout: ${timeoutId}`) }) this.element.remove() } }
Version data entries
71 entries across 71 versions & 1 rubygems