CreateJS / TweenJS

A simple but powerful tweening / animation library for Javascript. Part of the CreateJS suite of libraries.
http://createjs.com/
MIT License
3.56k stars 967 forks source link

Fixes bug duration variable in wait and to method #52

Closed ritz4-5 closed 7 years ago

ritz4-5 commented 9 years ago

Hi.

Although duration of _addStep must pass a number , I think must casts kicked to a number in the case of String that can be converted to a number.

exp.

createjs.Tween.get(target).wait(1000).to({alpha:0}, “1000”).duration // => ”10001000" 

I think the result is that should be 2000 because animation correctly move(2000msec)

gskinner commented 7 years ago

Thanks for this pull request. I have resolved this with a very similar approach.