diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-08 15:07:25 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-06-08 15:07:25 +0000 |
commit | 85d3d34b569d879ada04e5e1ba7d0448cfc207fe (patch) | |
tree | 91dc250be33f8c9109eeae138a4dedc6f0d5fd6e /ui/effects.pulsate.js | |
parent | 658307ab8f71cb68d7808f4d29a2799cd9980cc5 (diff) | |
download | jquery-ui-85d3d34b569d879ada04e5e1ba7d0448cfc207fe.tar.gz jquery-ui-85d3d34b569d879ada04e5e1ba7d0448cfc207fe.zip |
pulsate: correctly pulsates n-times now on show/hide
Diffstat (limited to 'ui/effects.pulsate.js')
-rw-r--r-- | ui/effects.pulsate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/effects.pulsate.js b/ui/effects.pulsate.js index 690e79805..e22c0f821 100644 --- a/ui/effects.pulsate.js +++ b/ui/effects.pulsate.js @@ -25,12 +25,12 @@ $.effects.pulsate = function(o) { var times = o.options.times || 5; // Default # of times // Adjust - if (mode != 'hide') times--; + if (mode == 'hide') times--; if (el.is(':hidden')) { // Show fadeIn el.css('opacity', 0); el.show(); // Show el.animate({opacity: 1}, o.duration / 2, o.options.easing); - times--; + times = times-2; } // Animate |