1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-23 18:35:27 +01:00
Pinafore-Web-Client-Frontend/routes/_components/dialog/helpers/onCreateDialog.js
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)
}