1
0
Fork 0
forked from 0x2620/oxjs

misc bugfixes

This commit is contained in:
rlx 2011-12-22 17:37:31 +00:00
commit 60281a666b
3 changed files with 6 additions and 6 deletions

View file

@ -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
});
}