diff --git a/source/Ox.UI/js/Menu/MenuItem.js b/source/Ox.UI/js/Menu/MenuItem.js index a07f0ba7..ed903e2e 100644 --- a/source/Ox.UI/js/Menu/MenuItem.js +++ b/source/Ox.UI/js/Menu/MenuItem.js @@ -26,6 +26,7 @@ Ox.MenuItem = function(options, self) { bind: [], // fixme: what's this? checked: null, disabled: false, + file: null, group: '', icon: '', id: '', @@ -90,18 +91,17 @@ Ox.MenuItem = function(options, self) { .html( self.options.file ? - that.$button = Ox.FileButton(Ox.extend(Ox.clone(self.options.file), { - title: self.options.title[0], - width: self.options.file.width - })).bindEvent({ + that.$button = Ox.FileButton(Ox.extend({ + title: self.options.title[0] + }, self.options.file)).bindEvent({ click: function(data) { self.options.menu.clickItem(self.options.position, data.files); } }) : ( Ox.isString(self.options.title[0]) - ? self.options.title[0] - : $('