mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
This commit is contained in:
commit
542914bcb7
1 changed files with 5 additions and 1 deletions
|
@ -538,7 +538,11 @@ define(["Tone/core/Tone", "Tone/core/Emitter", "Tone/core/Timeline", "Tone/shim/
|
|||
this.disconnect(B.input, outNum, inNum);
|
||||
} else {
|
||||
try {
|
||||
nativeDisconnect.apply(this, arguments);
|
||||
if (B instanceof AudioParam){
|
||||
nativeDisconnect.call(this, B, outNum);
|
||||
} else {
|
||||
nativeDisconnect.apply(this, arguments);
|
||||
}
|
||||
} catch (e){
|
||||
throw new Error("error disconnecting node: "+B+"\n"+e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue