forked from 0x2620/oxjs
misc bugfixes
This commit is contained in:
parent
02f53a57c1
commit
60281a666b
3 changed files with 6 additions and 6 deletions
|
|
@ -159,11 +159,11 @@ Ox.Select = function(options, self) {
|
|||
self.options.title ? self.options.title : getItem(self.options.value).title
|
||||
);
|
||||
that.triggerEvent('change', {
|
||||
title: Ox.isString(self.options.value)
|
||||
? getItem(self.options.value).title
|
||||
: self.options.value.map(function(value) {
|
||||
title: Ox.isArray(self.options.value)
|
||||
? self.options.value.map(function(value) {
|
||||
return getItem(value).title;
|
||||
}),
|
||||
})
|
||||
: getItem(self.options.value).title,
|
||||
value: self.options.value
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue