This commit is contained in:
Kevin Sawicki 2015-12-07 09:29:03 -08:00
parent 26ac86c95c
commit d5c740957f

View file

@ -170,7 +170,7 @@ Menu.buildFromTemplate = (template) ->
throw new TypeError('Invalid template for MenuItem') unless typeof item is 'object'
menuItem = new MenuItem(item)
menuItem[key] = value for key, value of item when not menuItem[key]?
menuItem[key] ?= value for key, value of item
menu.append menuItem
menu