Made changes to reloadAllCode to reload only the team's code.

This commit is contained in:
Aditya Raisinghani 2014-03-22 22:56:41 +05:30
parent 4d617d44f6
commit bee5d528ec

View file

@ -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: ->