]> source.dussan.org Git - jquery.git/commitdiff
Easing: Only use the state to calculate the value. Fixes #11284 - Simplify easings...
authorScott González <scott.gonzalez@gmail.com>
Mon, 6 Feb 2012 15:02:58 +0000 (10:02 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Fri, 10 Feb 2012 02:37:54 +0000 (21:37 -0500)
src/effects.js

index 346438174b4b2518a60ab12512ad430de6089cae..7d0c2a8abf84defa00973346e9e904438758a13c 100644 (file)
@@ -400,11 +400,11 @@ jQuery.extend({
        },
 
        easing: {
-               linear: function( p, n, firstNum, diff ) {
-                       return firstNum + diff * p;
+               linear: function( p ) {
+                       return p;
                },
-               swing: function( p, n, firstNum, diff ) {
-                       return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
+               swing: function( p ) {
+                       return ( -Math.cos( p*Math.PI ) / 2 ) + 0.5;
                }
        },