fixed memory leak when loading a new session (old cached tabs not purged, not garbage collected)

This commit is contained in:
jean-emmanuel 2016-03-23 23:43:27 +01:00
parent 580030c6fd
commit 3df3b18193

View file

@ -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')
}