widget: reuse hash upon recreation

widget: fix js locals reuse
tree: use hash instead of id to determine expanded containers
This commit is contained in:
bordun 2020-03-23 12:34:50 +01:00
parent 47005370e5
commit e9fb44884c
4 changed files with 19 additions and 14 deletions

View file

@ -35,7 +35,9 @@ var Parser = class Parser {
tab,
reCreateOptions,
children,
index
index,
hash,
locals
} = options
var props = data
@ -76,12 +78,13 @@ var Parser = class Parser {
// create widget
var widget = new this.widgets[props.type]({
container:true,
props,
parent,
parentNode,
reCreateOptions,
children
children,
hash,
locals,
})
widgetManager.addWidget(widget)