Update: CC - Before Render - Moorcow (to6trvr3fj.js) 25 bytes modified

beta.r3js.org
-=yb4f310 2017-11-16 10:00:06 +01:00
parent b557a8f1e9
commit d992840ba6
1 changed files with 7 additions and 8 deletions

View File

@ -197,13 +197,14 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
GameLib.Event.AUDIO_ENDED,
function(data) {
if (this.blastSubscription) {
if (data.audio.name === name) {
this.blastSubscription.remove();
this.blastSubscription = null;
if (data.name === name) {
if (this.blastSubscription) {
this.blastSubscription.remove();
this.blastSubscription = null;
GameLib.Event.Emit(
GameLib.Event.PLAY_AUDIO,
{
@ -211,8 +212,6 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
}
);
}
}
}.bind(this)
);