| DIR:/proc/thread-self/cwd/bright.medisavehealthcarebd.com/vendor/livewire/livewire/js/action/ |
| Current File : //proc/thread-self/cwd/bright.medisavehealthcarebd.com/vendor/livewire/livewire/js/action/index.js |
export default class {
constructor(el, skipWatcher = false) {
this.el = el
this.skipWatcher = skipWatcher
this.resolveCallback = () => { }
this.rejectCallback = () => { }
}
toId() {
return btoa(encodeURIComponent(this.el.outerHTML))
}
onResolve(callback) {
this.resolveCallback = callback
}
onReject(callback) {
this.rejectCallback = callback
}
resolve(thing) {
this.resolveCallback(thing)
}
reject(thing) {
this.rejectCallback(thing)
}
}
|