jquery ajax: making Paul's last change([5735]) shorter.
authorAriel Flesler <aflesler@gmail.com>
Fri, 20 Jun 2008 16:20:20 +0000 (16:20 +0000)
committerAriel Flesler <aflesler@gmail.com>
Fri, 20 Jun 2008 16:20:20 +0000 (16:20 +0000)
src/fx.js

index b9ca81e..df7721a 100644 (file)
--- 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 )