Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dab32ba

Browse files
committed
Don't clear a bufferSource that doesn't exist
Fixes #1508
1 parent d349826 commit dab32ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/howler.core.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,6 +2167,10 @@
21672167
var self = this;
21682168
var isIOS = Howler._navigator && Howler._navigator.vendor.indexOf('Apple') >= 0;
21692169

2170+
if (!node.bufferSource) {
2171+
return self;
2172+
}
2173+
21702174
if (Howler._scratchBuffer && node.bufferSource) {
21712175
node.bufferSource.onended = null;
21722176
node.bufferSource.disconnect(0);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /