no need to involve controls[name]
This commit is contained in:
parent
e167300194
commit
f6c04f9e74
1 changed files with 2 additions and 2 deletions
|
|
@ -765,8 +765,8 @@ generic_params.forEach(([type, name, description]) => {
|
|||
|
||||
// create custom param
|
||||
controls.createParam = (name) => {
|
||||
controls[name] = (...pats) => _name(name, ...pats);
|
||||
Pattern.prototype[name] = _setter(controls[name], name);
|
||||
const func = (...pats) => _name(name, ...pats);
|
||||
Pattern.prototype[name] = _setter(func, name);
|
||||
return (...pats) => _name(name, ...pats);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue