This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// requestAnimationFrame polyfill taken from https://gist.github.com/paulirish/1579671 | |
// and adopted to AMD module; | |
/* also: | |
- change new Date().getTime() to Date.now() | |
*/ | |
define ([], function () { | |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating |