bind to set isPlaying flag on ended

This commit is contained in:
Eric Rosenbaum 2017-02-02 15:25:26 -05:00
parent b68c84af02
commit 1c4709e5b9

View file

@ -79,7 +79,7 @@ SoundPlayer.prototype.finished = function () {
storedContext.bufferSource.onended = function () {
this.isPlaying = false;
resolve();
};
}.bind(storedContext);
});
};