multifader: fix dynamic color prop
This commit is contained in:
parent
1e5b4038e3
commit
4bbee6eb20
1 changed files with 20 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
var Matrix = require('./matrix'),
|
||||
parser = require('../../parser')
|
||||
parser = require('../../parser'),
|
||||
widgetManager = require('../../managers/widgets')
|
||||
|
||||
module.exports = class Multifader extends Matrix {
|
||||
|
||||
|
|
@ -95,4 +96,22 @@ module.exports = class Multifader extends Matrix {
|
|||
|
||||
}
|
||||
|
||||
onPropChanged(propName, options, oldPropValue) {
|
||||
|
||||
if (super.onPropChanged(...arguments)) return true
|
||||
|
||||
switch (propName) {
|
||||
|
||||
case 'color':
|
||||
for (var h of this.childrenHashes) {
|
||||
if (widgetManager.widgets[h]) {
|
||||
widgetManager.widgets[h].onPropChanged('color')
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue