jquery ajax: making Paul's last change([5735]) shorter.

This commit is contained in:
Ariel Flesler 2008-06-20 16:20:20 +00:00
parent 91a84d233d
commit 6159593520

View File

@ -75,7 +75,8 @@ jQuery.fn.extend({
return this[ optall.queue === false ? "each" : "queue" ](function(){ return this[ optall.queue === false ? "each" : "queue" ](function(){
var opt = jQuery.extend({}, optall), p, 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 ) { for ( p in prop ) {
if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden ) if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )