]> source.dussan.org Git - jquery-ui.git/commitdiff
Effects: Minor whitespace improvements
authorgnarf <gnarf@gnarf.net>
Sat, 5 Mar 2011 22:17:54 +0000 (16:17 -0600)
committergnarf <gnarf@gnarf.net>
Sat, 5 Mar 2011 22:17:54 +0000 (16:17 -0600)
ui/jquery.effects.core.js
ui/jquery.effects.highlight.js
ui/jquery.effects.transfer.js

index 6618a22365d4342debf4b8c7605a46124c79add9..cbfd4fbe1966d50000ccae9f7c0d652e7b843ee8 100644 (file)
@@ -487,7 +487,6 @@ $.fn.extend({
                                });
                        }
                }
-               
                return effectMethod.call(this, args);
        },
 
index 6ca0d53c25a60e5554491e17648521ac7e0f21b8..2049ec015aefc4fd80bdbb5eccc95779f1cbec5a 100644 (file)
@@ -26,6 +26,7 @@ $.effects.highlight = function(o) {
                }
 
                $.effects.save(elem, props);
+               
                elem
                        .show()
                        .css({
index 9765d49442c99bf61105988df5024f365a1da050..b57ac51b9a6c6263311897f15206c19cfcfdd022 100644 (file)
@@ -14,8 +14,8 @@
 
 $.effects.transfer = function(o) {
        return this.queue(function() {
-               var elem = $(this),
-                       target = $(o.to),
+               var elem = $( this ),
+                       target = $( o.to ),
                        endPosition = target.offset(),
                        animation = {
                                top: endPosition.top,
@@ -24,9 +24,9 @@ $.effects.transfer = function(o) {
                                width: target.innerWidth()
                        },
                        startPosition = elem.offset(),
-                       transfer = $('<div class="ui-effects-transfer"></div>')
-                               .appendTo(document.body)
-                               .addClass(o.className)
+                       transfer = $( '<div class="ui-effects-transfer"></div>' )
+                               .appendTo( document.body )
+                               .addClass( o.className )
                                .css({
                                        top: startPosition.top,
                                        left: startPosition.left,
@@ -34,7 +34,7 @@ $.effects.transfer = function(o) {
                                        width: elem.innerWidth(),
                                        position: 'absolute'
                                })
-                               .animate(animation, o.duration, o.easing, function() {
+                               .animate( animation, o.duration, o.easing, function() {
                                        transfer.remove();
                                        (o.complete && o.complete.apply(elem[0], arguments));
                                        elem.dequeue();