Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1282 closed enhancement (worksforme)

fix Effects hide(speed,callback) and show(speed,callback)

Reported by: achun Owned by:
Priority: major Milestone: 1.1.3
Component: effects Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:

Description

	show: function(speed,callback){
		var hidden = this.filter(":hidden");
    if(hidden.length){
		speed ?
			hidden.animate({
				height: "show", width: "show", opacity: "show"
			}, speed, callback) :
			
			hidden.each(function(){
				this.style.display = this.oldblock ? this.oldblock : "";
				if ( jQuery.css(this,"display") == "none" )
					this.style.display = "block";
			});
    }else{
      if (callback) callback();
    }
		return this;
	},

	hide: function(speed,callback){
		var visible = this.filter(":visible");
    if(visible.length){
		speed ?
			visible.animate({
				height: "hide", width: "hide", opacity: "hide"
			}, speed, callback) :
			
			visible.each(function(){
				this.oldblock = this.oldblock || jQuery.css(this,"display");
				if ( this.oldblock == "none" )
					this.oldblock = "block";
				this.style.display = "none";
			});
    }else{
      if (callback) callback();
    }
		return this;
	},

so. callback is Security.

Change History (1)

comment:1 Changed 13 years ago by john

Resolution: worksforme
Status: newclosed

Fixed in jQuery 1.1.3a.

Note: See TracTickets for help on using tickets.