Skip to content
Permalink
Browse files

effects.pulsate: set default mode to 'effect'

  • Loading branch information...
gnarf committed May 3, 2011
1 parent 321fd39 commit 61904162cf4f81330c23a5ea84fc49c62a3ce4ac
Showing with 4 additions and 3 deletions.
  1. +4 −3 ui/jquery.effects.pulsate.js
@@ -15,8 +15,8 @@
$.effects.effect.pulsate = function( o ) {
return this.queue( function( next ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "show" ),
show = mode === "show" || !elem.is( ":visible" ),
mode = $.effects.setMode( elem, o.mode || "effect" ),
show = mode === "show" || elem.is( ":hidden" ),
showhide = ( show || mode === "hide" ),

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

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

0 comments on commit 6190416

Please sign in to comment.
You can’t perform that action at this time.