Skip to content
Permalink
Browse files

Easing: Only use the state to calculate the value. Fixes #11284 - Sim…

…plify easings to only rely on the state.
  • Loading branch information...
scottgonzalez authored and dmethvin committed Feb 6, 2012
1 parent bf7a4df commit 8618487c536f7128222e3d0fefca933cc3e94298
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/effects.js
@@ -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;
}
},

0 comments on commit 8618487

Please sign in to comment.
You can’t perform that action at this time.