Include commands with no category

This commit is contained in:
Kevin Sawicki
2012-12-29 20:18:09 -08:00
parent 1956b98995
commit 6c9537132f

View File

@@ -54,7 +54,10 @@ class CommandLogger extends ScrollView
categories = {}
for eventName, details of @eventLog
categoryStart = eventName.indexOf(':')
categoryName = _.humanizeEventName(eventName.substring(0, categoryStart))
if categoryStart is -1
categoryName = 'Uncategorized'
else
categoryName = _.humanizeEventName(eventName.substring(0, categoryStart))
category = categories[categoryName]
unless category
category =