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

Method destroy

app/views/editor/level/thangs/ThangsTabView.js:381–392  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379 }
380
381 destroy () {
382 this.selectAddThangType(null)
383 if (this.surface != null) {
384 this.surface.destroy()
385 }
386 $(window).off('resize', this.onWindowResize)
387 $(document).unbind('contextmenu', this.preventDefaultContextMenu)
388 if (this.thangsTreema != null) {
389 this.thangsTreema.destroy()
390 }
391 return super.destroy()
392 }
393
394 onViewSwitched (e) {
395 this.selectAddThang(null, true)

Callers 5

onHiddenMethod · 0.45
loadBranchMethod · 0.45

Calls 1

selectAddThangTypeMethod · 0.95

Tested by

no test coverage detected