Skip to content

Commit 21bcc3c

Browse files
committed
Fixes option setter override so it doesn't break option getter.
1 parent ac38588 commit 21bcc3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jquery-ui-timepicker-addon.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,9 @@ $.datepicker._optionDatepicker = function(target, name, value) {
12761276
else if (onselect)
12771277
tp_inst._defaults.onSelect=onselect;
12781278
}
1279-
this._base_optionDatepicker(target, name, value);
1279+
if (value === undefined)
1280+
return this._base_optionDatepicker(target, name);
1281+
return this._base_optionDatepicker(target, name, value);
12801282
};
12811283

12821284
//#######################################################################################

0 commit comments

Comments
 (0)