mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Undasherize the namespace when no event exists
This would present the new-window event as "New Window" instead of "New-window".
This commit is contained in:
@@ -62,7 +62,7 @@ _.mixin
|
||||
|
||||
humanizeEventName: (eventName, eventDoc) ->
|
||||
[namespace, event] = eventName.split(':')
|
||||
return _.capitalize(namespace) unless event?
|
||||
return _.undasherize(namespace) unless event?
|
||||
|
||||
namespaceDoc = _.undasherize(namespace)
|
||||
eventDoc ?= _.undasherize(event)
|
||||
|
||||
Reference in New Issue
Block a user