toji/game-shim — pull request #1 by raphaelr (2012-03-18 20:29:00+00:00)
Title: animationStartTime is not a constant - it must be evaluated every call

`animationStartTime` doesn't represent the time on which the animation started - it represents the time the current frame started, so it changes pretty much every time it is read. This patch uses ES5 getters to properly simulate the correct behavior. On browsers without ES5 support, this patch does not add the getter, so `window.animationStartTime` is `undefined`. In my opinion, this is better than presenting incorrect behavior.

I've tested this patch against Firefox 12 and Chrome 17.