Merge pull request #3543 from rexrainbow/master

Add 'destroy' event of sound object
This commit is contained in:
Richard Davey 2018-04-11 10:14:55 +01:00 committed by GitHub
commit 2df61ab96b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -45,6 +45,7 @@
* Utils.Array.SetAll will set a property on all elements of an array to the given value, with optional range limits.
* Utils.Array.Swap will swap the position of two elements in an array.
* TransformMatrix.destroy is a new method that will clear out the array and object used by a Matrix internally.
* Add 'destroy' event in sound object.
### Bug Fixes

View file

@ -522,6 +522,7 @@ var BaseSound = new Class({
return;
}
this.emit('destroy', this);
this.pendingRemove = true;
this.manager = null;
this.key = '';