Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev

This commit is contained in:
Yotam Mann 2018-04-25 10:29:18 -04:00
commit 542914bcb7

View file

@ -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);
}