Skip to content

Commit 594d151

Browse files
Implemented destroy method for BaseSound class
1 parent b5e8a60 commit 594d151

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,18 @@ var BaseSound = new Class({
282282
*/
283283
update: NOOP,
284284
destroy: function () {
285+
this.manager.remove(this); // TODO replace with pendingRemove
286+
this.manager = null;
287+
this.key = '';
288+
this.isPlaying = false;
289+
this.isPaused = false;
290+
this.config = null;
291+
this.currentConfig = null;
292+
this.markers = null;
293+
this.currentMarker = null;
294+
this.fadeTween = null;
295+
this.events.destroy();
296+
this.events = null;
285297
},
286298
/**
287299
* @protected

0 commit comments

Comments
 (0)