Use cleaner root hash initialization

This commit is contained in:
Kevin Sawicki
2012-12-27 16:48:24 -08:00
parent bd68dc618a
commit 4773df0f3d

View File

@@ -63,9 +63,9 @@ class CommandLogger extends ScrollView
_.toArray(categories)
addTreeMap: ->
root = {}
root.name = "All"
root.children = @createRootChildren()
root =
name: 'All'
children: @createRootChildren()
node = root
@treeMap.empty()