aboutsummaryrefslogtreecommitdiff
path: root/atom/packages/ex-mode/lib/view-model.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'atom/packages/ex-mode/lib/view-model.coffee')
-rw-r--r--atom/packages/ex-mode/lib/view-model.coffee26
1 files changed, 0 insertions, 26 deletions
diff --git a/atom/packages/ex-mode/lib/view-model.coffee b/atom/packages/ex-mode/lib/view-model.coffee
deleted file mode 100644
index 742d751..0000000
--- a/atom/packages/ex-mode/lib/view-model.coffee
+++ /dev/null
@@ -1,26 +0,0 @@
-ExNormalModeInputElement = require './ex-normal-mode-input-element'
-
-class ViewModel
- constructor: (@command, opts={}) ->
- {@editor, @exState} = @command
-
- @view = new ExNormalModeInputElement().initialize(@, opts)
- @editor.normalModeInputView = @view
- @exState.onDidFailToExecute => @view.remove()
- @done = false
-
- confirm: (view) ->
- @exState.pushOperations(new Input(@view.value))
- @done = true
-
- cancel: (view) ->
- unless @done
- @exState.pushOperations(new Input(''))
- @done = true
-
-class Input
- constructor: (@characters) ->
-
-module.exports = {
- ViewModel, Input
-}