Skip to content

Commit

Permalink
Scale: Reset opacity after animation. Fixed #4274 - New show hide eff…
Browse files Browse the repository at this point in the history
…ects don't execute correctly in IE.
  • Loading branch information
scottgonzalez committed Jul 9, 2009
1 parent 292d9df commit f51cdf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/effects.scale.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ $.effects.size = function(o) {


// Animate // Animate
el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
if (el.to.opacity === 0) {
el.css('opacity', el.from.opacity);
}
if(mode == 'hide') el.hide(); // Hide if(mode == 'hide') el.hide(); // Hide
$.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore $.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore
if(o.callback) o.callback.apply(this, arguments); // Callback if(o.callback) o.callback.apply(this, arguments); // Callback
Expand Down

0 comments on commit f51cdf2

Please sign in to comment.