Skip to content

Commit

Permalink
Emit onstop event before returning from stop()
Browse files Browse the repository at this point in the history
Fixes #615
  • Loading branch information
Stenerson committed Sep 4, 2016
1 parent cfa82f8 commit 0d3df4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,10 @@
if (self._webAudio) {
// make sure the sound has been created
if (!sound._node.bufferSource) {
if (!internal) {
self._emit('stop', sound._id);
}

return self;
}

Expand Down

0 comments on commit 0d3df4c

Please sign in to comment.