forked from 0x2620/oxjs
fix a corner case in Ox.formatDateRangeDuration()
This commit is contained in:
parent
46ef208be2
commit
ccece375c0
4 changed files with 28 additions and 12 deletions
|
|
@ -177,6 +177,7 @@ Ox.Select = function(options, self) {
|
|||
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'value') {
|
||||
Ox.print('SETTING VALUE OPTION', value)
|
||||
that.selectItem(value);
|
||||
}
|
||||
};
|
||||
|
|
@ -223,6 +224,8 @@ Ox.Select = function(options, self) {
|
|||
//Ox.print('selected::', that.selected())
|
||||
return that.selected()[0].id;
|
||||
} else {
|
||||
that.selectItem(arguments[0]);
|
||||
return that;
|
||||
/*
|
||||
Ox.print('ELSE');
|
||||
that.selectItem(arguments[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue