mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
More memory cleanup.
This commit is contained in:
parent
aa4cc8d9c4
commit
166bb6db45
2 changed files with 5 additions and 1 deletions
app/views/play/level/tome
|
@ -26,6 +26,10 @@ module.exports = class Spell
|
|||
@view.render() # Get it ready and code loaded in advance
|
||||
@tabView = new SpellListTabEntryView spell: @, supermodel: @supermodel
|
||||
@tabView.render()
|
||||
|
||||
destroy: ->
|
||||
@view.destroy()
|
||||
@tabView.destroy()
|
||||
|
||||
addThang: (thang) ->
|
||||
if @thangs[thang.id]
|
||||
|
|
|
@ -166,4 +166,4 @@ module.exports = class TomeView extends View
|
|||
destroy: ->
|
||||
super()
|
||||
for spellKey, spell of @spells
|
||||
spell.view.destroy()
|
||||
spell.destroy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue