aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.pulsate.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-05-03 07:22:34 -0500
committergnarf <gnarf@gnarf.net>2011-05-03 07:22:34 -0500
commit61904162cf4f81330c23a5ea84fc49c62a3ce4ac (patch)
treecc0f2c31c8121f61d8430e07c3d3980fb03c61ef /ui/jquery.effects.pulsate.js
parent321fd390579d38641c7adc0fa1ebe988bca3fde5 (diff)
downloadjquery-ui-61904162cf4f81330c23a5ea84fc49c62a3ce4ac.tar.gz
jquery-ui-61904162cf4f81330c23a5ea84fc49c62a3ce4ac.zip
effects.pulsate: set default mode to 'effect'
Diffstat (limited to 'ui/jquery.effects.pulsate.js')
-rw-r--r--ui/jquery.effects.pulsate.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/jquery.effects.pulsate.js b/ui/jquery.effects.pulsate.js
index bcba48797..bec33a4bb 100644
--- a/ui/jquery.effects.pulsate.js
+++ b/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 );