property inheritance: always check 'value' prop first if it's potentially chanched (to apply it asap)

This commit is contained in:
jean-emmanuel 2018-02-04 17:25:58 +01:00
parent d943bfe673
commit eaa621b735

View file

@ -288,6 +288,11 @@ module.exports = class _widgets_base extends EventEmitter {
updateProps(propNames, options){
if (propNames.indexOf('value') > 0) {
propNames.splice(propNames.indexOf('value'), 1)
propNames.unshift('value')
}
for (var propName of propNames) {
let propValue = this.resolveProp(propName, undefined, false)