]> source.dussan.org Git - jquery-ui.git/commitdiff
Easings: Save a byte.
authorScott González <scott.gonzalez@gmail.com>
Fri, 20 Apr 2012 17:58:33 +0000 (13:58 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 20 Apr 2012 17:58:33 +0000 (13:58 -0400)
ui/jquery.effects.core.js

index 626ab1a89b2b5a617866102d5aff76f674ef59e6..bac0600679ecbcd4069d20c98b9c9641a3265e60 100644 (file)
@@ -722,7 +722,7 @@ $.each( baseEasings, function( name, easeIn ) {
        $.easing[ "easeInOut" + name ] = function( p ) {
                return p < 0.5 ?
                        easeIn( p * 2 ) / 2 :
-                       easeIn( p * -2 + 2 ) / -2 + 1;
+                       1 - easeIn( p * -2 + 2 ) / 2;
        };
 });