aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.transfer.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.transfer.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.transfer.js')
-rw-r--r--ui/jquery.effects.transfer.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.effects.transfer.js b/ui/jquery.effects.transfer.js
index 4b4c41050..9765d4944 100644
--- a/ui/jquery.effects.transfer.js
+++ b/ui/jquery.effects.transfer.js
@@ -15,7 +15,7 @@
$.effects.transfer = function(o) {
return this.queue(function() {
var elem = $(this),
- target = $(o.options.to),
+ target = $(o.to),
endPosition = target.offset(),
animation = {
top: endPosition.top,
@@ -26,7 +26,7 @@ $.effects.transfer = function(o) {
startPosition = elem.offset(),
transfer = $('<div class="ui-effects-transfer"></div>')
.appendTo(document.body)
- .addClass(o.options.className)
+ .addClass(o.className)
.css({
top: startPosition.top,
left: startPosition.left,
@@ -34,9 +34,9 @@ $.effects.transfer = function(o) {
width: elem.innerWidth(),
position: 'absolute'
})
- .animate(animation, o.duration, o.options.easing, function() {
+ .animate(animation, o.duration, o.easing, function() {
transfer.remove();
- (o.callback && o.callback.apply(elem[0], arguments));
+ (o.complete && o.complete.apply(elem[0], arguments));
elem.dequeue();
});
});