mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-03 17:33:31 -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
|
@view.render() # Get it ready and code loaded in advance
|
||||||
@tabView = new SpellListTabEntryView spell: @, supermodel: @supermodel
|
@tabView = new SpellListTabEntryView spell: @, supermodel: @supermodel
|
||||||
@tabView.render()
|
@tabView.render()
|
||||||
|
|
||||||
|
destroy: ->
|
||||||
|
@view.destroy()
|
||||||
|
@tabView.destroy()
|
||||||
|
|
||||||
addThang: (thang) ->
|
addThang: (thang) ->
|
||||||
if @thangs[thang.id]
|
if @thangs[thang.id]
|
||||||
|
|
|
@ -166,4 +166,4 @@ module.exports = class TomeView extends View
|
||||||
destroy: ->
|
destroy: ->
|
||||||
super()
|
super()
|
||||||
for spellKey, spell of @spells
|
for spellKey, spell of @spells
|
||||||
spell.view.destroy()
|
spell.destroy()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue