From 6159593520345aa00d4051e465736f0ec42a33cd Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Fri, 20 Jun 2008 16:20:20 +0000 Subject: [PATCH] jquery ajax: making Paul's last change([5735]) shorter. --- src/fx.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fx.js b/src/fx.js index b9ca81eb..df7721af 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 )