Merge pull request #535 from gnarf37/queue-true

Effects - Allow queue: true - Fixes #10445
This commit is contained in:
Julian Aubourg
2011-10-07 08:52:54 -07:00
2 changed files with 23 additions and 4 deletions

4
src/effects.js vendored
View File

@@ -352,8 +352,8 @@ jQuery.extend({
opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
// if undefined, set to fx
if ( opt.queue == null ) {
// normalize opt.queue - true/undefined/null -> "fx"
if ( opt.queue == null || opt.queue === true ) {
opt.queue = "fx";
}