minor changes
This commit is contained in:
parent
7c62771252
commit
9dbedf13f9
1 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue