8d5690d63d
* remove get() with string pt 1 * remove get() with string pt 2 * fix typo * fix some null exceptions in get() * fixup code style
14 lines
232 B
JavaScript
14 lines
232 B
JavaScript
import { on } from '../../../_utils/eventBus'
|
|
|
|
function onDestroy (thisId) {
|
|
let { id } = this.get()
|
|
if (id !== thisId) {
|
|
return
|
|
}
|
|
this.destroy()
|
|
}
|
|
|
|
export function oncreate () {
|
|
on('destroyDialog', this, onDestroy)
|
|
}
|