diff options
author | gnarf <gnarf@gnarf.net> | 2011-03-06 18:34:18 -0600 |
---|---|---|
committer | gnarf <gnarf@gnarf.net> | 2011-03-06 18:34:18 -0600 |
commit | 9c771b8f8b49a95da2b2234fdc0bd19c26a91038 (patch) | |
tree | 08a5bbddaeeb274b64d8e8ee0a94643dbf418cca /ui/jquery.effects.transfer.js | |
parent | 7a60bc6824227bc2613eec1b79bcd6e8170d61f0 (diff) | |
download | jquery-ui-9c771b8f8b49a95da2b2234fdc0bd19c26a91038.tar.gz jquery-ui-9c771b8f8b49a95da2b2234fdc0bd19c26a91038.zip |
effects.*: Style Guidance
Diffstat (limited to 'ui/jquery.effects.transfer.js')
-rw-r--r-- | ui/jquery.effects.transfer.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/jquery.effects.transfer.js b/ui/jquery.effects.transfer.js index b57ac51b9..79b1577d9 100644 --- a/ui/jquery.effects.transfer.js +++ b/ui/jquery.effects.transfer.js @@ -12,8 +12,9 @@ */ (function( $, undefined ) { -$.effects.transfer = function(o) { - return this.queue(function() { +$.effects.transfer = function( o ) { + + return this.queue( function() { var elem = $( this ), target = $( o.to ), endPosition = target.offset(), @@ -36,7 +37,7 @@ $.effects.transfer = function(o) { }) .animate( animation, o.duration, o.easing, function() { transfer.remove(); - (o.complete && o.complete.apply(elem[0], arguments)); + $.isFunction( o.complete ) && o.complete.apply(elem[0], arguments); elem.dequeue(); }); }); |