switcher: missing color prop update callback

This commit is contained in:
jean-emmanuel 2018-02-07 17:18:46 +01:00
parent 3e8ae6269e
commit ef51702c05

View file

@ -79,6 +79,22 @@ module.exports = class Switcher extends _switchers_base {
}
onPropChanged(propName, options, oldPropValue) {
if (super.onPropChanged(...arguments)) return true
switch (propName) {
case 'color':
for (var w of [this.switch]) {
w.onPropChanged('color')
}
return
}
}
onRemove() {
this.switch.onRemove()
super.onRemove()