Skip to content

Commit 85d3d34

Browse files
author
Paul Bakaus
committed
pulsate: correctly pulsates n-times now on show/hide
1 parent 658307a commit 85d3d34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/effects.pulsate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ $.effects.pulsate = function(o) {
2525
var times = o.options.times || 5; // Default # of times
2626

2727
// Adjust
28-
if (mode != 'hide') times--;
28+
if (mode == 'hide') times--;
2929
if (el.is(':hidden')) { // Show fadeIn
3030
el.css('opacity', 0);
3131
el.show(); // Show
3232
el.animate({opacity: 1}, o.duration / 2, o.options.easing);
33-
times--;
33+
times = times-2;
3434
}
3535

3636
// Animate

0 commit comments

Comments
 (0)