minor changes

This commit is contained in:
rolux 2012-06-17 19:10:41 +02:00
parent 7c62771252
commit 9dbedf13f9

View file

@ -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]
: $('<div>').html(self.options.title[0]).html()
? self.options.title[0]
: $('<div>').html(self.options.title[0]).html()
)
)
)