mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Editor uses @command to register command handlers
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user