make sure items is defined
This commit is contained in:
parent
0396aa0679
commit
09bc78ec02
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ Ox.Menu = function(options, self) {
|
|||
self.optionGroup = {};
|
||||
self.optionGroupOffset = {};
|
||||
items.forEach(function(item, i) {
|
||||
if (item.group) {
|
||||
if (item.group && item.items) {
|
||||
items[i] = item.items.map(function(v) {
|
||||
return Ox.extend(v, {
|
||||
group: item.group
|
||||
|
|
Loading…
Reference in a new issue