remove duplicated prop copying
This commit is contained in:
parent
b7e078e98d
commit
2cd10d339f
1 changed files with 0 additions and 6 deletions
|
@ -295,12 +295,6 @@ Menu.buildFromTemplate = function (template) {
|
|||
throw new TypeError('Invalid template for MenuItem')
|
||||
}
|
||||
menuItem = new MenuItem(item)
|
||||
for (key in item) {
|
||||
// Preserve extra fields specified by user
|
||||
if (!menuItem.hasOwnProperty(key)) {
|
||||
menuItem[key] = item[key]
|
||||
}
|
||||
}
|
||||
menu.append(menuItem)
|
||||
}
|
||||
return menu
|
||||
|
|
Loading…
Reference in a new issue