aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-06-20 16:20:20 +0000
committerAriel Flesler <aflesler@gmail.com>2008-06-20 16:20:20 +0000
commit6159593520345aa00d4051e465736f0ec42a33cd (patch)
tree9021cece239cd964d6ad939fba5da420378d1902 /src/fx.js
parent91a84d233d887dfe08f659779a31d43fb36cf3aa (diff)
downloadjquery-6159593520345aa00d4051e465736f0ec42a33cd.tar.gz
jquery-6159593520345aa00d4051e465736f0ec42a33cd.zip
jquery ajax: making Paul's last change([5735]) shorter.
Diffstat (limited to 'src/fx.js')
-rw-r--r--src/fx.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fx.js b/src/fx.js
index b9ca81eb5..df7721af5 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 )