Skip to content

Commit

Permalink
Effects: Minor whitespace improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarf committed Mar 5, 2011
1 parent 2fdc868 commit d742cd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion ui/jquery.effects.core.js
Expand Up @@ -487,7 +487,6 @@ $.fn.extend({
}); });
} }
} }

return effectMethod.call(this, args); return effectMethod.call(this, args);
}, },


Expand Down
1 change: 1 addition & 0 deletions ui/jquery.effects.highlight.js
Expand Up @@ -26,6 +26,7 @@ $.effects.highlight = function(o) {
} }


$.effects.save(elem, props); $.effects.save(elem, props);

elem elem
.show() .show()
.css({ .css({
Expand Down
12 changes: 6 additions & 6 deletions ui/jquery.effects.transfer.js
Expand Up @@ -14,8 +14,8 @@


$.effects.transfer = function(o) { $.effects.transfer = function(o) {
return this.queue(function() { return this.queue(function() {
var elem = $(this), var elem = $( this ),
target = $(o.to), target = $( o.to ),
endPosition = target.offset(), endPosition = target.offset(),
animation = { animation = {
top: endPosition.top, top: endPosition.top,
Expand All @@ -24,17 +24,17 @@ $.effects.transfer = function(o) {
width: target.innerWidth() width: target.innerWidth()
}, },
startPosition = elem.offset(), startPosition = elem.offset(),
transfer = $('<div class="ui-effects-transfer"></div>') transfer = $( '<div class="ui-effects-transfer"></div>' )
.appendTo(document.body) .appendTo( document.body )
.addClass(o.className) .addClass( o.className )
.css({ .css({
top: startPosition.top, top: startPosition.top,
left: startPosition.left, left: startPosition.left,
height: elem.innerHeight(), height: elem.innerHeight(),
width: elem.innerWidth(), width: elem.innerWidth(),
position: 'absolute' position: 'absolute'
}) })
.animate(animation, o.duration, o.easing, function() { .animate( animation, o.duration, o.easing, function() {
transfer.remove(); transfer.remove();
(o.complete && o.complete.apply(elem[0], arguments)); (o.complete && o.complete.apply(elem[0], arguments));
elem.dequeue(); elem.dequeue();
Expand Down

0 comments on commit d742cd6

Please sign in to comment.