remove duplicated prop copying

This commit is contained in:
Zeke Sikelianos
2016-10-10 11:07:01 -07:00
parent b7e078e98d
commit 2cd10d339f

View File

@@ -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