MCPcopy Create free account
hub / github.com/codecombat/codecombat / destroy

Method destroy

app/views/core/ModalComponent.js:44–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected