Implemented destroy method for BaseSound class

This commit is contained in:
Pavle Goloskokovic 2017-12-10 13:17:17 +01:00
parent b5e8a60530
commit 594d1512aa

View file

@ -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