Skip to content

Commit cd42ce9

Browse files
committed
Add destroy event of sound object
Add destroy event of sound object
1 parent 97cd94b commit cd42ce9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/sound/BaseSound.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ var BaseSound = new Class({
522522
return;
523523
}
524524

525+
this.emit('destroy', this);
525526
this.pendingRemove = true;
526527
this.manager = null;
527528
this.key = '';

0 commit comments

Comments
 (0)