prevent widgets to be stored multiple times with same Ids (leading to impossible synchronzation attempts)
This commit is contained in:
parent
ae2757b001
commit
f930eb127d
1 changed files with 3 additions and 0 deletions
|
|
@ -128,6 +128,9 @@ parsewidgets = function(widgets,parent) {
|
|||
if (__widgets__[widgetData.id]==undefined) {
|
||||
__widgets__[widgetData.id] = []
|
||||
}
|
||||
|
||||
if (__widgets__[widgetData.id].indexOf(widgetInner)!=-1) delete __widgets__[widgetData.id][__widgets__[widgetData.id].indexOf(widgetInner)]
|
||||
|
||||
__widgets__[widgetData.id].push(widgetInner)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue