mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Handle dispatching non-existent commands
This commit is contained in:
@@ -196,7 +196,7 @@ class CommandRegistry
|
||||
|
||||
loop
|
||||
matchingListeners =
|
||||
@listenersByCommandName[event.type]
|
||||
(@listenersByCommandName[event.type] ? [])
|
||||
.filter (listener) -> currentTarget.webkitMatchesSelector(listener.selector)
|
||||
.sort (a, b) -> a.compare(b)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user