widgets: missing precision parameter in deepCopy
This commit is contained in:
parent
ef52135525
commit
ea5521840d
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ module.exports = class _widgets_base {
|
|||
if (typeof obj === 'object') {
|
||||
copy = Array.isArray(obj) ? [] : {}
|
||||
for (let key in obj) {
|
||||
copy[key] = _widgets_base.deepCopy(obj[key])
|
||||
copy[key] = _widgets_base.deepCopy(obj[key], precision)
|
||||
}
|
||||
} else if (typeof obj == 'number') {
|
||||
return precision === undefined ? copy : parseFloat(copy.toFixed(precision))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue