()
| 42 | } |
| 43 | |
| 44 | destroy () { |
| 45 | if (this.vuexModule) { |
| 46 | store.unregisterModule('modal') |
| 47 | } |
| 48 | // Reference for how to safely destroy a vue component: |
| 49 | // https://forum.vuejs.org/t/add-component-to-dom-programatically/7308/12 |
| 50 | this.vueComponent.$destroy() |
| 51 | this.vueComponent.$el.remove() |
| 52 | this.vueComponent.$store = silentStore |
| 53 | this.vueComponent = null |
| 54 | return super.destroy() |
| 55 | } |
| 56 | } |
| 57 | ModalComponent.initClass() |
| 58 | return ModalComponent |
nothing calls this directly
no outgoing calls
no test coverage detected