mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Merge pull request #2315 from amankr/autocomplete2
Autocomplete bug fix #2233 - method 2 Thanks @amankr!
This commit is contained in:
commit
81678e81d9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
@editorLang = lang
|
||||
|
||||
onMultiplayerChanged: ->
|
||||
if @session.get('multiplayer')
|
||||
|
@ -1091,6 +1092,7 @@ module.exports = class SpellView extends CocoView
|
|||
@destroyAceEditor(@ace)
|
||||
@debugView?.destroy()
|
||||
@toolbarView?.destroy()
|
||||
@zatanna.addSnippets [], @editorLang if @editorLang?
|
||||
$(window).off 'resize', @onWindowResize
|
||||
super()
|
||||
|
||||
|
|
Loading…
Reference in a new issue