mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-25 22:14:29 -05:00
Autocomplete bug fix #2233
This commit is contained in:
parent
80fb124772
commit
224213ccb0
1 changed files with 2 additions and 1 deletions
|
@ -443,6 +443,7 @@ module.exports = class SpellView extends CocoView
|
||||||
# window.snippetEntries = snippetEntries
|
# window.snippetEntries = snippetEntries
|
||||||
lang = SpellView.editModes[e.language].substr 'ace/mode/'.length
|
lang = SpellView.editModes[e.language].substr 'ace/mode/'.length
|
||||||
@zatanna.addSnippets snippetEntries, lang
|
@zatanna.addSnippets snippetEntries, lang
|
||||||
|
@newlang = lang
|
||||||
|
|
||||||
onMultiplayerChanged: ->
|
onMultiplayerChanged: ->
|
||||||
if @session.get('multiplayer')
|
if @session.get('multiplayer')
|
||||||
|
@ -1091,7 +1092,7 @@ module.exports = class SpellView extends CocoView
|
||||||
@destroyAceEditor(@ace)
|
@destroyAceEditor(@ace)
|
||||||
@debugView?.destroy()
|
@debugView?.destroy()
|
||||||
@toolbarView?.destroy()
|
@toolbarView?.destroy()
|
||||||
@zatanna.addSnippets [], @spell.language
|
@zatanna.addSnippets [], @newlang if @newlang?
|
||||||
$(window).off 'resize', @onWindowResize
|
$(window).off 'resize', @onWindowResize
|
||||||
super()
|
super()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue