Skip to content

Commit 6190416

Browse files
committed
effects.pulsate: set default mode to 'effect'
1 parent 321fd39 commit 6190416

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ui/jquery.effects.pulsate.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
$.effects.effect.pulsate = function( o ) {
1616
return this.queue( function( next ) {
1717
var elem = $( this ),
18-
mode = $.effects.setMode( elem, o.mode || "show" ),
19-
show = mode === "show" || !elem.is( ":visible" ),
18+
mode = $.effects.setMode( elem, o.mode || "effect" ),
19+
show = mode === "show" || elem.is( ":hidden" ),
2020
showhide = ( show || mode === "hide" ),
2121

2222
// showing or hiding leaves of the "last" animation
@@ -32,7 +32,8 @@ $.effects.effect.pulsate = function( o ) {
3232
animateTo = 1;
3333
}
3434

35-
for ( i = 0; i < anims - 1; i++ ) {
35+
// anims - 1 opacity "toggles"
36+
for ( i = 1; i < anims; i++ ) {
3637
elem.animate({
3738
opacity: animateTo
3839
}, duration, o.easing );

0 commit comments

Comments
 (0)