aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.slide.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-18 21:57:51 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-18 21:57:51 -0400
commitcb8474af1dc099de9e08665c9d6cdc2cf5864203 (patch)
tree565840fa6d66586d864cea9f52d58802781e130d /ui/jquery.effects.slide.js
parent55e13692ee2937df9bda8e3348c4b07834e093d8 (diff)
downloadjquery-ui-cb8474af1dc099de9e08665c9d6cdc2cf5864203.tar.gz
jquery-ui-cb8474af1dc099de9e08665c9d6cdc2cf5864203.zip
Remove trailing whitespace.
Diffstat (limited to 'ui/jquery.effects.slide.js')
-rw-r--r--ui/jquery.effects.slide.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/jquery.effects.slide.js b/ui/jquery.effects.slide.js
index 77d540a9c..e57a21264 100644
--- a/ui/jquery.effects.slide.js
+++ b/ui/jquery.effects.slide.js
@@ -29,32 +29,32 @@ $.effects.effect.slide = function( o, done ) {
// Adjust
$.effects.save( el, props );
el.show();
- distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]({
+ distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]({
margin: true
});
-
+
$.effects.createWrapper( el ).css({
overflow: "hidden"
});
-
+
if ( show ) {
el.css( ref, positiveMotion ? (isNaN(distance) ? "-" + distance : -distance) : distance );
}
// Animation
- animation[ ref ] = ( show ?
- ( positiveMotion ? "+=" : "-=") :
+ animation[ ref ] = ( show ?
+ ( positiveMotion ? "+=" : "-=") :
( positiveMotion ? "-=" : "+=")) +
distance;
// Animate
- el.animate( animation, {
- queue: false,
- duration: o.duration,
- easing: o.easing,
+ el.animate( animation, {
+ queue: false,
+ duration: o.duration,
+ easing: o.easing,
complete: function() {
if ( mode === "hide" ) {
- el.hide();
+ el.hide();
}
$.effects.restore( el, props );
$.effects.removeWrapper( el );