Tweaked how to call option methods

master
Trent Richardson 2010-12-14 09:06:26 -05:00
parent 2084e23da9
commit 2f96131641
1 changed files with 3 additions and 2 deletions

View File

@ -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