From 9dbedf13f954e542dc63dda826a34c34f7f95633 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 17 Jun 2012 19:10:41 +0200 Subject: [PATCH] minor changes --- source/Ox.UI/js/Menu/MenuItem.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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] - : $('
').html(self.options.title[0]).html() + ? self.options.title[0] + : $('
').html(self.options.title[0]).html() ) ) )