Related to issue 23761: Fixed leaks when the quick launch menu is opened
authorAugusto Mauch <augusto.mauch@openbravo.com>
Fri, 10 May 2013 08:58:48 +0200
changeset 20308 752359630143
parent 20307 2065f7a45897
child 20309 58ca94d1bf65
Related to issue 23761: Fixed leaks when the quick launch menu is opened
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js	Fri May 10 08:58:02 2013 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js	Fri May 10 08:58:48 2013 +0200
@@ -120,6 +120,9 @@
         OB.Utilities.openDirectTab(params.tabId, params.recordId, params.command);
       }
     }
+    if (this.members[1].getMembers()) {
+      this.members[1].destroyAndRemoveMembers(this.members[1].getMembers().duplicate());
+    }
 
     this.Super('doHide', arguments);
   },