Skip to content

Commit f0bc96e

Browse files
Checking hasEnded on update in order to call stop method
1 parent 84e6459 commit f0bc96e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ var WebAudioSound = new Class({
138138
}
139139
},
140140
update: function () {
141+
if (this.hasEnded) {
142+
this.stop();
143+
}
141144
},
142145
destroy: function () {
143146
}

0 commit comments

Comments
 (0)