]> source.dussan.org Git - jquery-ui.git/commitdiff
Scale: Reset opacity after animation. Fixed #4274 - New show hide effects don't execu...
authorScott González <scott.gonzalez@gmail.com>
Thu, 9 Jul 2009 04:00:35 +0000 (04:00 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 9 Jul 2009 04:00:35 +0000 (04:00 +0000)
ui/effects.scale.js

index 3a2023537bb7db8493456cfdb9b419109db3f672..3b5a02ca4219e4c2f440c70f060af14b5a0da92c 100644 (file)
@@ -162,6 +162,9 @@ $.effects.size = function(o) {
 
                // Animate
                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
                        $.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore
                        if(o.callback) o.callback.apply(this, arguments); // Callback