diff options
author | gnarf <gnarf@gnarf.net> | 2011-05-03 10:48:00 -0500 |
---|---|---|
committer | gnarf <gnarf@gnarf.net> | 2011-05-03 10:48:00 -0500 |
commit | 126d46c0509ff9b8b5f194b897201458925ace93 (patch) | |
tree | dc8061235adc569b0e16c6bd38ed24aec6659a66 /ui/jquery.effects.pulsate.js | |
parent | d5f6a71cfa1966b9d838b7589bb92ba29274d1aa (diff) | |
download | jquery-ui-126d46c0509ff9b8b5f194b897201458925ace93.tar.gz jquery-ui-126d46c0509ff9b8b5f194b897201458925ace93.zip |
effects.pulsate: tweaking 'times' - if showing / hiding the animation has an extra 'half' time as opposed to removing a 'half' time
Diffstat (limited to 'ui/jquery.effects.pulsate.js')
-rw-r--r-- | ui/jquery.effects.pulsate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.effects.pulsate.js b/ui/jquery.effects.pulsate.js index bec33a4bb..3325c251f 100644 --- a/ui/jquery.effects.pulsate.js +++ b/ui/jquery.effects.pulsate.js @@ -19,8 +19,8 @@ $.effects.effect.pulsate = function( o ) { show = mode === "show" || elem.is( ":hidden" ), showhide = ( show || mode === "hide" ), - // showing or hiding leaves of the "last" animation - anims = ( ( o.times || 5 ) * 2 ) - ( showhide ? 1 : 0 ), + // showing or hiding adds an extra "half" animation + anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ), duration = o.duration / anims, animateTo = 0, queue = elem.queue(), |