mirror of
https://github.com/atom/atom.git
synced 2026-02-11 23:25:03 -05:00
Use closure wrapper with current event name
This commit is contained in:
@@ -18,7 +18,9 @@ class EditorCommand
|
||||
return unless keymaps
|
||||
|
||||
for key, event of keymaps
|
||||
editor.on event, => @execute(editor, event)
|
||||
do (event) =>
|
||||
editor.on event, =>
|
||||
@execute(editor, event)
|
||||
|
||||
@replaceSelectedText: (editor, replace) ->
|
||||
selection = editor.getSelection()
|
||||
|
||||
Reference in New Issue
Block a user