Skip to content

Commit a8502f3

Browse files
committed
Removed State.destroy empty method and replaced with State.shutdown, as that is what the StateManager expects (fix phaserjs#586)
1 parent 3ebd0d9 commit a8502f3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Bug Fixes
7070
Updated:
7171

7272
* Updated Device.isConsoleOpen as it no longer works in Chrome. Revised code and documentation accordingly (fix #593)
73+
* Removed State.destroy empty method and replaced with State.shutdown, as that is what the StateManager expects (fix #586)
7374

7475

7576
TODO:

src/core/State.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ Phaser.State.prototype = {
162162
},
163163

164164
/**
165-
* This method will be called when the state is destroyed.
166-
* @method Phaser.State#destroy
165+
* This method will be called when the state is shut down (i.e. you switch to another state from this one).
166+
* @method Phaser.State#shutdown
167167
*/
168-
destroy: function () {
168+
shutdown: function () {
169169
}
170170

171171
};

0 commit comments

Comments
 (0)