make sure signal is defined before checking instanceof

This commit is contained in:
Yotam Mann 2015-08-28 18:33:02 -04:00
parent a2611941ea
commit 117337e5e1

View file

@ -173,7 +173,7 @@ define(function(){
if (isUndef(param)){
continue;
}
if (param instanceof Tone.Signal){
if (isFunction(Tone.Signal) && param instanceof Tone.Signal){
if (param.value !== value){
if (isUndef(rampTime)){
param.value = value;