mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
effects.clip: Reuse a var instead of calculate again
This commit is contained in:
parent
210fcc4278
commit
7391fe8df3
2
ui/jquery.effects.clip.js
vendored
2
ui/jquery.effects.clip.js
vendored
@ -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' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user