🎨
This commit is contained in:
parent
26ac86c95c
commit
d5c740957f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue