Skip to content

Commit 2f96131

Browse files
Tweaked how to call option methods
1 parent 2084e23 commit 2f96131

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,11 @@ $.fn.extend({
556556

557557
if (typeof(o) == 'string'){
558558
if(o == 'getDate')
559-
return $.fn.datepicker.apply($(this), tmp_args);
559+
return $.fn.datepicker.apply($(this[0]), tmp_args);
560560
else
561561
return this.each(function() {
562-
$.fn.datepicker.apply($(this), tmp_args);
562+
var $t = $(this);
563+
$t.datepicker.apply($t, tmp_args);
563564
});
564565
}
565566
else

0 commit comments

Comments
 (0)