this.queue( optall.queue, doAnimation );
},
- stop: function( clearQueue, gotoEnd, type ) {
+ stop: function( type, clearQueue, gotoEnd ) {
+ if ( typeof type !== "string" ) {
+ gotoEnd = clearQueue;
+ clearQueue = type;
+ type = undefined;
+ }
if ( clearQueue && type !== false ) {
this.queue( type || "fx", [] );
}
}, 100);
});
-asyncTest( "stop( ..., ..., queue ) - Stop single queues", function() {
+asyncTest( "stop( queue, ..., ... ) - Stop single queues", function() {
expect( 3 );
var foo = jQuery( "#foo" ),
saved;
},{
duration: 1000,
queue: "height"
- }).dequeue( "height" ).stop( false, true, "height" );
+ }).dequeue( "height" ).stop( "height", false, true );
equals( foo.height(), 400, "Height was stopped with gotoEnd" );
},{
duration: 1000,
queue: "height"
- }).dequeue( "height" ).stop( false, false, "height" );
+ }).dequeue( "height" ).stop( "height", false, false );
saved = foo.height();
});