photonstorm/phaser — pull request #147 by beeglebug (2013-10-30 16:26:22+00:00)
Title: state callbacks now receive game object as argument

I've made the game state callbacks receive the current game as an argument.

This means states can will be a lot more self contained (scope wise) without having to reply on closures.

It will also allow a scope to be shared between two game instances on the same page.