batiste/sprite.js — pull request #31 by danielwhite (2013-03-03 04:27:57+00:00)
Title: Use cancelAnimationFrame in Ticker.pause() if animation frames are enabled

This is implemented by capturing the callback reference returned by
requestAnimationFrame which can be cancelled in a similar manner to
clearing a timeout.

Prior to this, Ticker.pause() would clear sjs.animationFrame and then
a null reference error would be triggered when resuming.