From cd42ce981aeb2bee60b72a74912d4c76bb3021cf Mon Sep 17 00:00:00 2001 From: Hua Date: Wed, 11 Apr 2018 16:29:29 +0800 Subject: [PATCH] Add destroy event of sound object Add destroy event of sound object --- src/sound/BaseSound.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sound/BaseSound.js b/src/sound/BaseSound.js index 4959d36cc..942ff4f28 100644 --- a/src/sound/BaseSound.js +++ b/src/sound/BaseSound.js @@ -522,6 +522,7 @@ var BaseSound = new Class({ return; } + this.emit('destroy', this); this.pendingRemove = true; this.manager = null; this.key = '';