From bee5d528ec55d4f05efd8bf0d9001acb3ea79d88 Mon Sep 17 00:00:00 2001 From: Aditya Raisinghani Date: Sat, 22 Mar 2014 22:56:41 +0530 Subject: [PATCH] Made changes to reloadAllCode to reload only the team's code. --- app/views/play/level/tome/tome_view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/play/level/tome/tome_view.coffee b/app/views/play/level/tome/tome_view.coffee index 65af01739..68ca029bf 100644 --- a/app/views/play/level/tome/tome_view.coffee +++ b/app/views/play/level/tome/tome_view.coffee @@ -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 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 destroy: ->