property inheritance: apply precision when retrieving a widget value, fix precision implementation mistake in getValue

This commit is contained in:
jean-emmanuel 2018-01-02 11:55:01 +01:00
parent 25d6f30ed3
commit e1d43b0e31

View file

@ -101,7 +101,7 @@ module.exports = class _widgets_base {
getValue(withPrecision) {
return _widgets_base.deepCopy(this.value, withPrecision)
return _widgets_base.deepCopy(this.value, withPrecision ? this.precision : undefined)
}
@ -177,7 +177,7 @@ module.exports = class _widgets_base {
}
var r = k == '_value' ?
widgets[i].getValue() :
widgets[i].getValue(true) :
widgets[i].resolveProp(k, undefined, storeLinks, originalWidget, originalPropName)
if (subk !== undefined) r = r[subk]