mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
Destroy will remove the listener from Video.onChangeSource.
This commit is contained in:
parent
bf25e67f5a
commit
927c14536d
1 changed files with 5 additions and 0 deletions
|
@ -102,6 +102,11 @@ Phaser.Component.Destroy.prototype = {
|
|||
this._frame = null;
|
||||
}
|
||||
|
||||
if (Phaser.Video && this.key instanceof Phaser.Video)
|
||||
{
|
||||
this.key.onChangeSource.remove(this.resizeFrame, this);
|
||||
}
|
||||
|
||||
this.alive = false;
|
||||
this.exists = false;
|
||||
this.visible = false;
|
||||
|
|
Loading…
Reference in a new issue