comply with new Atom API

This commit is contained in:
Loic Nageleisen 2015-05-24 11:49:29 +02:00
parent 1c064ec13a
commit 3f75ca3a30
6 changed files with 74 additions and 69 deletions

View file

@ -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()