check that a param is defined

This commit is contained in:
Yotam Mann 2018-01-21 22:30:19 -05:00
parent dfe269d60c
commit 5d85e15f2f

View file

@ -52,7 +52,7 @@ define(["Tone/core/Tone", "Tone/type/Type", "Tone/core/AudioNode", "Tone/core/Ti
*/
this._events = new Tone.Timeline(1000);
if (!Tone.isUndef(options.value)){
if (!Tone.isUndef(options.value) && this._param){
this.value = options.value;
}
};