mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
check that a param is defined
This commit is contained in:
parent
dfe269d60c
commit
5d85e15f2f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue