1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-31 22:14:53 +01:00
2018-04-08 16:56:20 -07:00

13 lines
210 B
JavaScript

import { on } from '../../../_utils/eventBus'
function onDestroy (id) {
if (this.get('id') !== id) {
return
}
this.destroy()
}
export function oncreate () {
on('destroyDialog', this, onDestroy)
}