Changeset 3858
- Timestamp:
- 11/19/07 17:19:13 (1 year ago)
- Files:
-
- 1 modified
-
trunk/fx/experimental/fx.drop.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fx/experimental/fx.drop.js
r3855 r3858 13 13 var s = $.ec.findSides(el), ref = { left: s[0], right: s[0], up: s[1], down: s[1] }; 14 14 props.push(ref[direction]); // Add side to props 15 var motion = ( ref[direction] == 'top' || ref[direction]== 'left') ? 'pos' : 'neg';16 var distance = o.options.distance || ( ref == 'top'? (el.height() / 2) : (el.width() / 2));15 var motion = (direction == 'down' || direction == 'left') ? 'pos' : 'neg'; 16 var distance = o.options.distance || ((direction == 'up' || direction == 'down') ? (el.height() / 2) : (el.width() / 2)); 17 17 var shift = parseInt(el.css(ref[direction])) || 0; 18 18
