Commit 62a251a0 authored by Brandon Aaron's avatar Brandon Aaron

fix for #4204, fadeTo shows hidden elements before animating

parent ace13387
...@@ -95,7 +95,8 @@ jQuery.fn.extend({ ...@@ -95,7 +95,8 @@ jQuery.fn.extend({
}, },
fadeTo: function(speed,to,callback){ fadeTo: function(speed,to,callback){
return this.animate({opacity: to}, speed, callback); return this.filter(":hidden").css('opacity', 0).show().end()
.animate({opacity: to}, speed, callback);
}, },
animate: function( prop, speed, easing, callback ) { animate: function( prop, speed, easing, callback ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment