Skip to content

Commit d050b84

Browse files
committed
Added onRemovedFromWorld signal. Not currently used anywhere, but will be.
1 parent 9efa5ef commit d050b84

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/gameobjects/Events.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ Phaser.Events = function (sprite) {
3636
*/
3737
this.onRemovedFromGroup = new Phaser.Signal();
3838

39+
/**
40+
* @property {Phaser.Signal} onRemovedFromWorld - This signal is dispatched if this item or any of its parents are removed from the game world.
41+
*/
42+
this.onRemovedFromWorld = new Phaser.Signal();
43+
3944
/**
4045
* @property {Phaser.Signal} onDestroy - This signal is dispatched when the parent is destoyed.
4146
*/
@@ -131,6 +136,7 @@ Phaser.Events.prototype = {
131136
this.onDestroy.dispose();
132137
this.onAddedToGroup.dispose();
133138
this.onRemovedFromGroup.dispose();
139+
this.onRemovedFromWorld.dispose();
134140
this.onKilled.dispose();
135141
this.onRevived.dispose();
136142
this.onOutOfBounds.dispose();

0 commit comments

Comments
 (0)