widgets: fix several widgets not passing parent reference to their children

This commit is contained in:
jean-emmanuel 2018-01-25 09:06:28 +01:00
parent d3ec5468e7
commit 70e114d2a0
4 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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

View file

@ -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 = ()=>{}

View file

@ -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 = ()=>{}