forked from 0x2620/oxjs
fix a bug where menus would modify item objects passed by reference
This commit is contained in:
parent
17d842c64c
commit
636f772820
3 changed files with 6 additions and 11 deletions
|
|
@ -36,7 +36,7 @@ Ox.MenuItem = function(options, self) {
|
|||
position: 0,
|
||||
title: [],
|
||||
})
|
||||
.options(Ox.extend(options, {
|
||||
.options(Ox.extend(Ox.clone(options), {
|
||||
keyboard: parseKeyboard(options.keyboard || self.defaults.keyboard),
|
||||
title: Ox.toArray(options.title || self.defaults.title)
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue