Skip to content
Permalink
Browse files

effects.drop: Quick second pass Style Guidance

  • Loading branch information...
gnarf committed Mar 7, 2011
1 parent 69a7382 commit b6debf4daf015173de904a361ddb1041fc9474a8
Showing with 7 additions and 6 deletions.
  1. +7 −6 ui/jquery.effects.drop.js
@@ -20,17 +20,18 @@ $.effects.drop = function( o ) {
props = [ 'position', 'top', 'bottom', 'left', 'right', 'opacity' ],
mode = $.effects.setMode( el, o.mode || 'hide' ),
direction = o.direction || 'left',
ref = (direction == 'up' || direction == 'down') ? 'top' : 'left',
motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg',
ref = ( direction == 'up' || direction == 'down' ) ? 'top' : 'left',
motion = ( direction == 'up' || direction == 'left' ) ? 'pos' : 'neg',
animation = {
opacity: mode == 'show' ? 1 : 0
},
distance;

// Adjust
$.effects.save(el, props); el.show();
$.effects.createWrapper(el);

$.effects.save( el, props );
el.show();
$.effects.createWrapper( el );

distance = o.distance || el[ ref == 'top' ? 'outerHeight': 'outerWidth' ]({ margin: true }) / 2;

if ( mode == 'show' ) {

0 comments on commit b6debf4

Please sign in to comment.
You can’t perform that action at this time.