Skip to content

Commit 48f17b1

Browse files
fixed all pass through methods to datepicker
1 parent 294b8cf commit 48f17b1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,19 +479,17 @@ $.fn.extend({
479479
tmp_args = arguments;
480480

481481
if (typeof(o) == 'string') {
482-
if (o == 'getDate')
483-
return $(this).datepicker(o);
484-
else if (o == 'setDate') return this.each(function() {
485-
$(this).datepicker(o, tmp_args[1]);
482+
if (o == 'setDate') return this.each(function() {
483+
return $(this).datepicker(o, tmp_args[1]);
486484
});
487485
else if(o == 'option' && typeof(tmp_args[1]) == 'string') return this.each(function() {
488-
$(this).datepicker(o, tmp_args[1], tmp_args[2]);
486+
return $(this).datepicker(o, tmp_args[1], tmp_args[2]);
489487
});
490488
else if(o == 'dialog') return this.each(function() {
491-
$(this).datepicker(o, tmp_args[1], tmp_args[2], tmp_args[3], tmp_args[4]);
489+
return $(this).datepicker(o, tmp_args[1], tmp_args[2], tmp_args[3], tmp_args[4]);
492490
});
493491
else return this.each(function() {
494-
$(this).datepicker(o);
492+
return $(this).datepicker(o);
495493
});
496494
} else {
497495
var tp_inst = new Timepicker(),

0 commit comments

Comments
 (0)