From 0d3df4c0c5b71b552c8aabd3adb723ae8423e40c Mon Sep 17 00:00:00 2001 From: Matt Stenerson Date: Sun, 4 Sep 2016 12:17:01 -0500 Subject: [PATCH] Emit onstop event before returning from stop() Fixes #615 --- src/howler.core.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/howler.core.js b/src/howler.core.js index c5d40831..742c72a9 100644 --- a/src/howler.core.js +++ b/src/howler.core.js @@ -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; }