Tweaked how to call option methods
This commit is contained in:
parent
2084e23da9
commit
2f96131641
5
jquery-ui-timepicker-addon.js
vendored
5
jquery-ui-timepicker-addon.js
vendored
|
@ -556,10 +556,11 @@ $.fn.extend({
|
|||
|
||||
if (typeof(o) == 'string'){
|
||||
if(o == 'getDate')
|
||||
return $.fn.datepicker.apply($(this), tmp_args);
|
||||
return $.fn.datepicker.apply($(this[0]), tmp_args);
|
||||
else
|
||||
return this.each(function() {
|
||||
$.fn.datepicker.apply($(this), tmp_args);
|
||||
var $t = $(this);
|
||||
$t.datepicker.apply($t, tmp_args);
|
||||
});
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue