aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.clip.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.effects.clip.js')
-rw-r--r--ui/jquery.effects.clip.js2
1 files changed, 1 insertions, 1 deletions
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' ) {