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:
parent
47005370e5
commit
e9fb44884c
4 changed files with 19 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue