Editor uses @command to register command handlers

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-10-19 12:48:19 -06:00
parent eff289de37
commit e6d541438d

View File

@@ -157,11 +157,8 @@ class Editor extends View
documentation = {}
for name, method of editorBindings
documentation[name] = _.humanizeEventName(name)
do (name, method) =>
@on name, => method.call(this); false
@document(documentation)
@command name, => method.call(this); false
getCursor: (index) -> @activeEditSession.getCursor(index)
getCursors: -> @activeEditSession.getCursors()