mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-26 12:50:31 -04:00
Publish "tome:spell-loaded" on spell reloading
This commit is contained in:
parent
e09b867a93
commit
56da3af83b
1 changed files with 1 additions and 0 deletions
|
@ -375,6 +375,7 @@ module.exports = class SpellView extends CocoView
|
|||
reloadCode: (cast=true) ->
|
||||
@updateACEText @spell.originalSource
|
||||
@recompile cast
|
||||
Backbone.Mediator.publish 'tome:spell-loaded', spell: @spell
|
||||
|
||||
recompileIfNeeded: =>
|
||||
@recompile() if @recompileNeeded
|
||||
|
|
Loading…
Add table
Reference in a new issue