@@ -460,9 +460,12 @@ $.fn.extend({
460
460
// shorthand just to use timepicker..
461
461
//########################################################################
462
462
timepicker : function ( o ) {
463
+ var tmp_args = arguments ;
464
+
463
465
if ( typeof o == 'object' ) o = $ . extend ( o , { timeOnly : true } ) ;
466
+
464
467
return this . each ( function ( ) {
465
- $ ( this ) . datetimepicker ( o , arguments [ 1 ] , arguments [ 2 ] , arguments [ 3 ] , arguments [ 4 ] ) ;
468
+ $ ( this ) . datetimepicker ( o , tmp_args [ 1 ] , tmp_args [ 2 ] , tmp_args [ 3 ] , tmp_args [ 4 ] ) ;
466
469
} ) ;
467
470
} ,
468
471
@@ -471,17 +474,18 @@ $.fn.extend({
471
474
//########################################################################
472
475
datetimepicker : function ( o ) {
473
476
o = o || { } ;
474
- var $input = this ;
477
+ var $input = this ,
478
+ tmp_args = arguments ;
475
479
476
480
if ( typeof ( o ) == 'string' ) {
477
481
if ( o == 'setDate' ) return this . each ( function ( ) {
478
- $ ( this ) . datepicker ( o , arguments [ 1 ] ) ;
482
+ $ ( this ) . datepicker ( o , tmp_args [ 1 ] ) ;
479
483
} ) ;
480
- else if ( o == 'option' && typeof ( arguments [ 1 ] ) == 'string' ) return this . each ( function ( ) {
481
- $ ( this ) . datepicker ( o , arguments [ 1 ] , arguments [ 2 ] ) ;
484
+ else if ( o == 'option' && typeof ( tmp_args [ 1 ] ) == 'string' ) return this . each ( function ( ) {
485
+ $ ( this ) . datepicker ( o , tmp_args [ 1 ] , tmp_args [ 2 ] ) ;
482
486
} ) ;
483
487
else if ( o == 'dialog' ) return this . each ( function ( ) {
484
- $ ( this ) . datepicker ( o , arguments [ 1 ] , arguments [ 2 ] , arguments [ 3 ] , arguments [ 4 ] ) ;
488
+ $ ( this ) . datepicker ( o , tmp_args [ 1 ] , tmp_args [ 2 ] , tmp_args [ 3 ] , tmp_args [ 4 ] ) ;
485
489
} ) ;
486
490
else return this . each ( function ( ) {
487
491
$ ( this ) . datepicker ( o ) ;
0 commit comments