effects.clip: Reuse a var instead of calculate again

This commit is contained in:
gnarf 2011-03-06 05:25:38 -06:00
parent 210fcc4278
commit 7391fe8df3

View File

@ -36,7 +36,7 @@ $.effects.clip = function( o ) {
overflow: 'hidden'
});
animate = ( el[0].tagName == 'IMG' ) ? wrapper : el;
distance = ( direction == 'vertical' ) ? animate.height() : animate.width();
distance = animate[ ref.size ]();
// Shift
if ( mode == 'show' ) {