aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.pulsate.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-03-02 20:00:57 -0600
committergnarf <gnarf@gnarf.net>2011-03-02 20:00:57 -0600
commita370d1ffc8b0783a3a9ed1951e144902baddb264 (patch)
treeb974e1492c0e978663069b2b96e233dfbed66cc7 /ui/jquery.effects.pulsate.js
parent5fd1f17393d8467b3c873a379f4c55b9aa279ad1 (diff)
downloadjquery-ui-a370d1ffc8b0783a3a9ed1951e144902baddb264.tar.gz
jquery-ui-a370d1ffc8b0783a3a9ed1951e144902baddb264.zip
Just a quick touch to update to new internal effects object API
Diffstat (limited to 'ui/jquery.effects.pulsate.js')
-rw-r--r--ui/jquery.effects.pulsate.js10
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