panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, 100, "correct duration" );
- equal( easing, undefined, "default easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, 100, "correct duration" );
+ equal( options.easing, undefined, "default easing" );
animate.apply( this, arguments );
};
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, undefined, "default duration" );
- equal( easing, "linear", "correct easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, undefined, "default duration" );
+ equal( options.easing, "linear", "correct easing" );
animate.apply( this, arguments );
};
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, undefined, "default duration" );
- equal( easing, undefined, "default easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, undefined, "default duration" );
+ equal( options.easing, undefined, "default easing" );
animate.apply( this, arguments );
};
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, 100, "correct duration" );
- equal( easing, "linear", "correct easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, 100, "correct duration" );
+ equal( options.easing, "linear", "correct easing" );
animate.apply( this, arguments );
};
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, 100, "correct duration" );
- equal( easing, "linear", "correct easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, 100, "correct duration" );
+ equal( options.easing, "linear", "correct easing" );
animate.apply( this, arguments );
};
panels = element.find( ".ui-accordion-content" ),
animate = $.fn.animate;
// called twice (both panels)
- $.fn.animate = function( props, duration, easing ) {
- equal( duration, 100, "correct duration" );
- equal( easing, "swing", "correct easing" );
+ $.fn.animate = function( props, options ) {
+ equal( options.duration, 100, "correct duration" );
+ equal( options.easing, "swing", "correct easing" );
animate.apply( this, arguments );
};