photonstorm/phaser — pull request #662 by ralphsmith80 (2014-03-28 14:21:03+00:00)
Title: issue#661 update state before values are cleared

resolve #661
this prevent loosing state values related to physics bodys
and inputs before `state.update` is called.