diff options
author | gnarf <gnarf@gnarf.net> | 2011-03-06 23:34:24 -0600 |
---|---|---|
committer | gnarf <gnarf@gnarf.net> | 2011-03-06 23:34:24 -0600 |
commit | b6debf4daf015173de904a361ddb1041fc9474a8 (patch) | |
tree | 8c2eea0d11f81359bc7d29420d7ace0ac972d621 /ui | |
parent | 69a7382fb71b1dade2284bca519c730b726d85d5 (diff) | |
download | jquery-ui-b6debf4daf015173de904a361ddb1041fc9474a8.tar.gz jquery-ui-b6debf4daf015173de904a361ddb1041fc9474a8.zip |
effects.drop: Quick second pass Style Guidance
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.effects.drop.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/jquery.effects.drop.js b/ui/jquery.effects.drop.js index 221a0bf17..b88a8c428 100644 --- a/ui/jquery.effects.drop.js +++ b/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' ) { |