Removed State.destroy empty method and replaced with State.shutdown, as that is what the StateManager expects (fix #586)

This commit is contained in:
photonstorm 2014-03-17 19:43:28 +00:00
parent 3ebd0d9303
commit a8502f3498
2 changed files with 4 additions and 3 deletions

View file

@ -70,6 +70,7 @@ Bug Fixes
Updated:
* Updated Device.isConsoleOpen as it no longer works in Chrome. Revised code and documentation accordingly (fix #593)
* Removed State.destroy empty method and replaced with State.shutdown, as that is what the StateManager expects (fix #586)
TODO:

View file

@ -162,10 +162,10 @@ Phaser.State.prototype = {
},
/**
* This method will be called when the state is destroyed.
* @method Phaser.State#destroy
* This method will be called when the state is shut down (i.e. you switch to another state from this one).
* @method Phaser.State#shutdown
*/
destroy: function () {
shutdown: function () {
}
};