Effects: Remove additional parameters of easings

Fixes gh-2367
Closes gh-2376
This commit is contained in:
Thomas Tortorini
2015-06-27 17:18:21 +02:00
committed by Michał Gołębiowski
parent c9cf250daa
commit b7a7dea95f
2 changed files with 7 additions and 16 deletions

View File

@@ -27,17 +27,12 @@ Tween.prototype = {
Tween.propHooks._default.get( this );
},
run: function( percent ) {
var eased,
hooks = Tween.propHooks[ this.prop ];
var hooks = Tween.propHooks[ this.prop ];
if ( this.options.duration ) {
this.pos = eased = jQuery.easing[ this.easing ](
percent, this.options.duration * percent, 0, 1, this.options.duration
);
} else {
this.pos = eased = percent;
}
this.now = ( this.end - this.start ) * eased + this.start;
this.pos = this.options.duration ?
jQuery.easing[ this.easing ]( percent ) :
percent;
this.now = ( this.end - this.start ) * this.pos + this.start;
if ( this.options.step ) {
this.options.step.call( this.elem, this.now, this );