From 7391fe8df3ce335f467989a69151636c8bed17bc Mon Sep 17 00:00:00 2001 From: gnarf Date: Sun, 6 Mar 2011 05:25:38 -0600 Subject: [PATCH] effects.clip: Reuse a var instead of calculate again --- ui/jquery.effects.clip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.effects.clip.js b/ui/jquery.effects.clip.js index 643e436b1..8cf91da57 100644 --- a/ui/jquery.effects.clip.js +++ b/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' ) { -- 2.39.5