ded/morpheus — pull request #38 by danro (2012-12-09 22:34:14+00:00)
Title: Further shim `performance.now` while supporting epoch-based callbacks.

I worked a bit more on my `perfNow` shim approach. Instead of ignoring the timestamp on each `rAF` callback, I am validating it. So with this new approach, here is what will happen:

1. Non-rAF browsers will remain unchanged.
2. rAF browsers w/ old epoch-based timers will remain unchanged.
3. rAF browsers w/ `performance.(prefix)now` will use the new timestamp.

Also added in @rvagg's new duration test and made it slightly more forgiving (because web browsers are chuggy on page load... thanks Rod for the epic session last night btw).

All tests passing in:

* Win 7 / IE9
* Win 7 / IE10
* Win 7 / Firefox 4
* Win 7 / Firefox 12
* Win 7 / Chrome 24.0.1312.14
* OSX / Firefox 15
* OSX / Firefox 19.0a2
* OSX / Safari 6.0.2
* OSX / Chrome 23.0.1271.95
* OSX / Chrome 25.0.1354.0 canary

Mixed results in the old dogs:

* IE 6-8 - Basic duration is passing, but Color + Transform are failing (This seems to be another issue, unrelated to the animation loop though.)

Really hope this is cool with you guys because I'm fucking tired of typing `rAF`.

:shipit: