comply with new Atom API
This commit is contained in:
parent
1c064ec13a
commit
3f75ca3a30
6 changed files with 74 additions and 69 deletions
|
|
@ -1,10 +1,10 @@
|
|||
ExCommandModeInputView = require './ex-command-mode-input-view'
|
||||
ExCommandModeInputElement = require './ex-command-mode-input-element'
|
||||
|
||||
class ViewModel
|
||||
constructor: (@command, opts={}) ->
|
||||
{@editor, @exState} = @command
|
||||
|
||||
@view = new ExCommandModeInputView(@, opts)
|
||||
@view = new ExCommandModeInputElement().initialize(@, opts)
|
||||
@editor.commandModeInputView = @view
|
||||
@exState.onDidFailToExecute => @view.remove()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue