obiot/melonJS — pull request #61 by parasyte (2012-07-12 04:57:54+00:00)
Title: Fix a bad bug in the way requestAnimFrame() is used

See commit comment. The basic bug is that _renderFrame() in me.state does not update the _animFrame variable, so _stopRunLoop() can never cancel the proper request. With that fixed, I've re-enabled the pauseOnBlur functionality with useNativeAnimFrame enabled.