jeremyckahn / shifty

The fastest TypeScript animation engine on the web
https://jeremyckahn.github.io/shifty/doc/
MIT License
1.54k stars 88 forks source link

Remove noop callback and step from core, reuse same fn on queue. #22

Closed millermedeiros closed 12 years ago

millermedeiros commented 12 years ago

There is no need to create a new noop function for each tween if it isn't going to be called, added checks so it is only called if available and on queue it reuses same noop function for all calls if needed.

jeremyckahn commented 12 years ago

Great catch, thanks a bunch!