Skip to content

Commit b6debf4

Browse files
committed
effects.drop: Quick second pass Style Guidance
1 parent 69a7382 commit b6debf4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ui/jquery.effects.drop.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ $.effects.drop = function( o ) {
2020
props = [ 'position', 'top', 'bottom', 'left', 'right', 'opacity' ],
2121
mode = $.effects.setMode( el, o.mode || 'hide' ),
2222
direction = o.direction || 'left',
23-
ref = (direction == 'up' || direction == 'down') ? 'top' : 'left',
24-
motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg',
23+
ref = ( direction == 'up' || direction == 'down' ) ? 'top' : 'left',
24+
motion = ( direction == 'up' || direction == 'left' ) ? 'pos' : 'neg',
2525
animation = {
2626
opacity: mode == 'show' ? 1 : 0
2727
},
2828
distance;
29-
29+
3030
// Adjust
31-
$.effects.save(el, props); el.show();
32-
$.effects.createWrapper(el);
33-
31+
$.effects.save( el, props );
32+
el.show();
33+
$.effects.createWrapper( el );
34+
3435
distance = o.distance || el[ ref == 'top' ? 'outerHeight': 'outerWidth' ]({ margin: true }) / 2;
3536

3637
if ( mode == 'show' ) {

0 commit comments

Comments
 (0)