fixed memory leak when loading a new session (old cached tabs not purged, not garbage collected)
This commit is contained in:
parent
580030c6fd
commit
3df3b18193
1 changed files with 6 additions and 0 deletions
|
|
@ -21,6 +21,12 @@ module.exports.tabs = function(data,parent,main,parentLabel){
|
|||
WIDGETS_LINKED = {}
|
||||
WIDGETS_BY_PATH = {}
|
||||
SESSION = data
|
||||
for (i in TABS) {
|
||||
if (i!='#container') {
|
||||
TABS[i].parent.remove()
|
||||
TABS[i].tab.remove()
|
||||
}
|
||||
}
|
||||
TABS['#container'] = {
|
||||
tab:$('#container')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue