Fixes option setter override so it doesn't break option getter.

This commit is contained in:
Tomáš Windsor 2011-12-04 16:02:41 +01:00
parent ac38588138
commit 21bcc3c07b

View file

@ -1276,7 +1276,9 @@ $.datepicker._optionDatepicker = function(target, name, value) {
else if (onselect)
tp_inst._defaults.onSelect=onselect;
}
this._base_optionDatepicker(target, name, value);
if (value === undefined)
return this._base_optionDatepicker(target, name);
return this._base_optionDatepicker(target, name, value);
};
//#######################################################################################