Skip to content

Commit 8ff62d4

Browse files
committed
Moved event emitter. Fix phaserjs#5427
1 parent 0d6d784 commit 8ff62d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/GameObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,15 +687,15 @@ var GameObject = new Class({
687687
this.preDestroy.call(this);
688688
}
689689

690+
this.emit(Events.DESTROY, this);
691+
690692
this.removeAllListeners();
691693

692694
if (this.postPipelines)
693695
{
694696
this.resetPostPipeline(true);
695697
}
696698

697-
this.emit(Events.DESTROY, this);
698-
699699
if (this.displayList)
700700
{
701701
this.displayList.queueDepthSort();

0 commit comments

Comments
 (0)