Assign autocompleter to editor so we can inspect it when it f's up

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-07-12 11:11:34 -06:00
parent 76d71c82d0
commit b62ddcfa01

View File

@@ -27,7 +27,7 @@ class Autocomplete extends View
@activate: (rootView) ->
new Autocomplete(editor) for editor in rootView.getEditors()
rootView.on 'editor-open', (e, editor) ->
new Autocomplete(editor) unless editor.is('.autocomplete .mini')
editor.autoComplete = new Autocomplete(editor) unless editor.is('.autocomplete .mini')
initialize: (@editor) ->
requireStylesheet 'autocomplete.css'