widgets: fix several widgets not passing parent reference to their children
This commit is contained in:
parent
bd86a5df0e
commit
bd2e7b16ae
4 changed files with 5 additions and 5 deletions
|
|
@ -72,7 +72,7 @@ module.exports = class Rgb extends _pads_base {
|
|||
range:{min:0,max:360},
|
||||
input:false,
|
||||
precision:2
|
||||
}, cancelDraw: false})
|
||||
}, cancelDraw: false, parent: this})
|
||||
this.hue.margin = this.pointSize
|
||||
this.hue.sendValue = ()=>{}
|
||||
this.hueWrapper.appendChild(this.hue.widget)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ module.exports = class Xy extends _pads_base {
|
|||
precision:this.precision,
|
||||
logScale:this.getProp('logScaleX'),
|
||||
input:false
|
||||
}, cancelDraw: true}),
|
||||
}, cancelDraw: true, parent: this}),
|
||||
y: new Fader({props:{
|
||||
...faderDefaults,
|
||||
id:1,
|
||||
|
|
@ -97,7 +97,7 @@ module.exports = class Xy extends _pads_base {
|
|||
precision:this.precision,
|
||||
logScale:this.getProp('logScaleY'),
|
||||
input:false
|
||||
}, cancelDraw: true}),
|
||||
}, cancelDraw: true, parent: this}),
|
||||
}
|
||||
|
||||
this.faders.x.margin = this.faders.y.margin = this.pointSize + 1
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ module.exports = class Crossfader extends Switcher {
|
|||
...faderDefaults,
|
||||
horizontal: this.getProp('horizontal'),
|
||||
range: {min:{'A':0}, '50%':{" ":0.5},max:{'B':1}}
|
||||
}})
|
||||
}, parent: this})
|
||||
|
||||
this.fader.sendValue = ()=>{}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ module.exports = class Switcher extends _switchers_base {
|
|||
values:this.getProp('values'),
|
||||
value: this.getProp('value'),
|
||||
horizontal:this.getProp('horizontal')
|
||||
}})
|
||||
}, parent: this})
|
||||
|
||||
this.switch.sendValue = ()=>{}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue