Skip to content
Permalink
Browse files

effects.clip: Reuse a var instead of calculate again

  • Loading branch information...
gnarf committed Mar 6, 2011
1 parent 210fcc4 commit 7391fe8df3ce335f467989a69151636c8bed17bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.effects.clip.js
@@ -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' ) {

0 comments on commit 7391fe8

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