aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2011-10-11 21:21:59 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-10-11 21:21:59 -0400
commit6c4ca13d693663cdd124d4d29cb12897a6debc5e (patch)
treeaa13afa8c0857e8afe091207919423d0908a14bb /src/effects.js
parent83c08ffa1ffa778e41d728ed7fa49044dd7135f9 (diff)
downloadjquery-6c4ca13d693663cdd124d4d29cb12897a6debc5e.tar.gz
jquery-6c4ca13d693663cdd124d4d29cb12897a6debc5e.zip
Squashed commit of the following:
commit af3fd32f207ed080084f10d76f89c07c414baa05 Merge: 83c08ff fdd60f8 Author: Dave Methvin <dave.methvin@gmail.com> Date: Tue Oct 11 21:17:56 2011 -0400 Merge branch 'stop' of https://github.com/gnarf37/jquery into pull-541-stop commit fdd60f8705e98430df62196f505cb929b2d7f6bc Author: Corey Frang <gnarf@gnarf.net> Date: Mon Oct 10 13:51:59 2011 -0500 .stop( [queue,] clearQueue, gotoEnd )
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js
index 147763d63..9be9293e5 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -248,7 +248,12 @@ jQuery.fn.extend({
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", [] );
}