Skip to content

Commit

Permalink
Merge pull request #616 from Stenerson/master
Browse files Browse the repository at this point in the history
Emit onstop event before returning from stop()
  • Loading branch information
goldfire committed Sep 30, 2016
2 parents 1a7e81c + 0d3df4c commit dcc679f
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 @@ -835,6 +835,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 dcc679f

Please sign in to comment.