Fixes issue 18227: Closing a tab doesn't release all objects
authorMartin Taal <martin.taal@openbravo.com>
Mon, 26 Sep 2011 10:09:13 +0200
changeset 13833 d46a820cf3cc
parent 13832 396084cb0906
child 13834 e2cb1c71b1d5
Fixes issue 18227: Closing a tab doesn't release all objects
Removed workaround
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js	Mon Sep 26 10:08:28 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js	Mon Sep 26 10:09:13 2011 +0200
@@ -445,27 +445,5 @@
   
   formatDate: function(dt) {
     return OB.Utilities.Date.JSToOB(dt, OB.Format.date);
-  },
-  
-  // TODO: the destroy and clear can be removed 
-  // after upgrading to a SC release after mid-august 2011
-  destroy: function() {
-    this.destroying = true;
-    if (this.rangeDialog) {
-      this.rangeDialog.rangeForm.destroy();
-      this.rangeDialog.mainLayout.destroy();
-      this.rangeDialog.destroying  = true;
-      this.rangeDialog.destroy();
-      this.rangeDialog.destroying  = false;
-    }
-    this.Super('destroy', arguments);
-    this.destroying = false;
-  },
-  
-  clear: function() {
-    if (this.destroying) {
-      return;
-    }
-    this.Super('clear', arguments);
   }
 });
\ No newline at end of file