diff options
Diffstat (limited to 'ui/jquery.effects.pulsate.js')
-rw-r--r-- | ui/jquery.effects.pulsate.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/jquery.effects.pulsate.js b/ui/jquery.effects.pulsate.js index 1b3cb00f8..e7d53d02d 100644 --- a/ui/jquery.effects.pulsate.js +++ b/ui/jquery.effects.pulsate.js @@ -15,8 +15,8 @@ $.effects.pulsate = function(o) { return this.queue(function() { var elem = $(this), - mode = $.effects.setMode(elem, o.options.mode || 'show'), - times = ((o.options.times || 5) * 2) - 1, + mode = $.effects.setMode(elem, o.mode || 'show'), + times = ((o.times || 5) * 2) - 1, duration = o.duration ? o.duration / 2 : $.fx.speeds._default / 2, isVisible = elem.is(':visible'), animateTo = 0; @@ -31,15 +31,15 @@ $.effects.pulsate = function(o) { } for (var i = 0; i < times; i++) { - elem.animate({ opacity: animateTo }, duration, o.options.easing); + elem.animate({ opacity: animateTo }, duration, o.easing); animateTo = (animateTo + 1) % 2; } - elem.animate({ opacity: animateTo }, duration, o.options.easing, function() { + elem.animate({ opacity: animateTo }, duration, o.easing, function() { if (animateTo == 0) { elem.hide(); } - (o.callback && o.callback.apply(this, arguments)); + (o.complete && o.complete.apply(this, arguments)); }); elem |