X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Ffx.js;h=ab3fe1a2ac2eea652deed59335ff40c8cedd5a28;hb=4812446594645b0a431b66507595afd3331e3292;hp=b9ca81eb54176e1cead52474eaec10acc5a913ca;hpb=91a84d233d887dfe08f659779a31d43fb36cf3aa;p=jquery.git diff --git a/src/fx.js b/src/fx.js index b9ca81e..ab3fe1a 100644 --- a/src/fx.js +++ b/src/fx.js @@ -75,7 +75,8 @@ jQuery.fn.extend({ return this[ optall.queue === false ? "each" : "queue" ](function(){ var opt = jQuery.extend({}, optall), p, - hidden = this.nodeType != 1 ? false : jQuery(this).is(":hidden"), self = this; + hidden = this.nodeType == 1 && jQuery(this).is(":hidden"), + self = this; for ( p in prop ) { if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden ) @@ -216,7 +217,7 @@ jQuery.extend({ opt.duration = (opt.duration && opt.duration.constructor == Number ? opt.duration : - jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds.def; + jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds._default; // Queueing opt.old = opt.complete; @@ -403,7 +404,7 @@ jQuery.extend( jQuery.fx, { slow: 600, fast: 200, // Default speed - def: 400 + _default: 400 }, step: { scrollLeft: function(fx){