Handle dispatching non-existent commands

This commit is contained in:
Nathan Sobo
2014-09-23 16:38:25 -06:00
parent a492596f7f
commit 40f8b990d0

View File

@@ -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)