mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 07:40:22 -04:00
Autocomplete bug fix #2233
This commit is contained in:
parent
224213ccb0
commit
85a024546b
1 changed files with 2 additions and 2 deletions
|
@ -443,7 +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
|
||||
@editorLang = lang
|
||||
|
||||
onMultiplayerChanged: ->
|
||||
if @session.get('multiplayer')
|
||||
|
@ -1092,7 +1092,7 @@ module.exports = class SpellView extends CocoView
|
|||
@destroyAceEditor(@ace)
|
||||
@debugView?.destroy()
|
||||
@toolbarView?.destroy()
|
||||
@zatanna.addSnippets [], @newlang if @newlang?
|
||||
@zatanna.addSnippets [], @editorLang if @editorLang?
|
||||
$(window).off 'resize', @onWindowResize
|
||||
super()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue