mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Made changes to reloadAllCode to reload only the team's code.
This commit is contained in:
parent
4d617d44f6
commit
bee5d528ec
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ module.exports = class TomeView extends View
|
||||||
@spellPaletteView.toggleControls {}, spell.view.controlsEnabled # TODO: know when palette should have been disabled but didn't exist
|
@spellPaletteView.toggleControls {}, spell.view.controlsEnabled # TODO: know when palette should have been disabled but didn't exist
|
||||||
|
|
||||||
reloadAllCode: ->
|
reloadAllCode: ->
|
||||||
spell.view.reloadCode false for spellKey, spell of @spells
|
spell.view.reloadCode false for spellKey, spell of @spells when spell.team is me.team
|
||||||
Backbone.Mediator.publish 'tome:cast-spells', spells: @spells
|
Backbone.Mediator.publish 'tome:cast-spells', spells: @spells
|
||||||
|
|
||||||
destroy: ->
|
destroy: ->
|
||||||
|
|
Loading…
Reference in a new issue