diff --git a/app/views/play/level/tome/SpellView.coffee b/app/views/play/level/tome/SpellView.coffee index 735c12ab3..fdf9aae33 100644 --- a/app/views/play/level/tome/SpellView.coffee +++ b/app/views/play/level/tome/SpellView.coffee @@ -443,6 +443,7 @@ module.exports = class SpellView extends CocoView # window.snippetEntries = snippetEntries lang = SpellView.editModes[e.language].substr 'ace/mode/'.length @zatanna.addSnippets snippetEntries, lang + @newlang = lang onMultiplayerChanged: -> if @session.get('multiplayer') @@ -1091,7 +1092,7 @@ module.exports = class SpellView extends CocoView @destroyAceEditor(@ace) @debugView?.destroy() @toolbarView?.destroy() - @zatanna.addSnippets [], @spell.language + @zatanna.addSnippets [], @newlang if @newlang? $(window).off 'resize', @onWindowResize super()