Skip to main content

Bug Tracker

Side navigation

#1282 closed enhancement (worksforme)

Opened June 08, 2007 02:26AM UTC

Closed June 12, 2007 06:33AM UTC

Last modified June 21, 2007 03:27AM UTC

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.

Attachments (0)
Change History (1)

Changed June 12, 2007 06:33AM UTC by john comment:1

resolution: → worksforme
status: newclosed

Fixed in jQuery 1.1.3a.