mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Implemented destroy method for BaseSound class
This commit is contained in:
parent
b5e8a60530
commit
594d1512aa
1 changed files with 12 additions and 0 deletions
|
@ -282,6 +282,18 @@ var BaseSound = new Class({
|
|||
*/
|
||||
update: NOOP,
|
||||
destroy: function () {
|
||||
this.manager.remove(this); // TODO replace with pendingRemove
|
||||
this.manager = null;
|
||||
this.key = '';
|
||||
this.isPlaying = false;
|
||||
this.isPaused = false;
|
||||
this.config = null;
|
||||
this.currentConfig = null;
|
||||
this.markers = null;
|
||||
this.currentMarker = null;
|
||||
this.fadeTween = null;
|
||||
this.events.destroy();
|
||||
this.events = null;
|
||||
},
|
||||
/**
|
||||
* @protected
|
||||
|
|
Loading…
Reference in a new issue