aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.drop.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-02 15:55:50 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-02 15:55:50 -0400
commitccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03 (patch)
treec826598d95c1b945677b9d375ff5ee80dab120eb /ui/jquery.effects.drop.js
parent3876c874e3f311d263aef9f99ed2780afa1d41d7 (diff)
downloadjquery-ui-ccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03.tar.gz
jquery-ui-ccbfd45924d6ddebc7b2bb575a9c8997a3d9ec03.zip
A few lint fixes.
Diffstat (limited to 'ui/jquery.effects.drop.js')
-rw-r--r--ui/jquery.effects.drop.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/jquery.effects.drop.js b/ui/jquery.effects.drop.js
index 8ccbfe57d..6c72be9e5 100644
--- a/ui/jquery.effects.drop.js
+++ b/ui/jquery.effects.drop.js
@@ -31,19 +31,19 @@ $.effects.effect.drop = function( o, done ) {
el.show();
$.effects.createWrapper( el );
- distance = o.distance || el[ ref == "top" ? "outerHeight": "outerWidth" ]({ margin: true }) / 2;
+ distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]({ margin: true }) / 2;
if ( show ) {
el
.css( "opacity", 0 )
- .css( ref, motion == "pos" ? -distance : distance );
+ .css( ref, motion === "pos" ? -distance : distance );
}
// Animation
animation[ ref ] = ( show ?
( motion === "pos" ? "+=" : "-=" ) :
- ( motion === "pos" ? "-=" : "+=" ) )
- + distance;
+ ( motion === "pos" ? "-=" : "+=" ) ) +
+ distance;
// Animate
el.animate( animation, {
@@ -51,13 +51,14 @@ $.effects.effect.drop = function( o, done ) {
duration: o.duration,
easing: o.easing,
complete: function() {
- mode == "hide" && el.hide();
+ if ( mode === "hide" ) {
+ el.hide();
+ }
$.effects.restore( el, props );
$.effects.removeWrapper( el );
done();
}
});
-
};
})(jQuery);