[Commits] r2473 - core/trunk/geoext/lib/GeoExt/widgets

commits at geoext.org commits at geoext.org
Fri Nov 5 16:01:20 CET 2010


Author: bartvde
Date: 2010-11-05 16:01:20 +0100 (Fri, 05 Nov 2010)
New Revision: 2473

Modified:
   core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js
Log:
LayerLegend: set layerRecord and layerStore to null, r=fredj (closes #369)

Modified: core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js	2010-11-02 08:59:34 UTC (rev 2472)
+++ core/trunk/geoext/lib/GeoExt/widgets/LayerLegend.js	2010-11-05 15:01:20 UTC (rev 2473)
@@ -128,6 +128,14 @@
         this.layerStore &&
             this.layerStore.un("update", this.onStoreUpdate, this);
         GeoExt.LayerLegend.superclass.beforeDestroy.apply(this, arguments);
+    },
+
+    /** private: method[onDestroy]
+     */
+    onDestroy: function() {
+        this.layerRecord = null;
+        this.layerStore = null;
+        GeoExt.LayerLegend.superclass.onDestroy.apply(this, arguments);
     }
 
 });



More information about the Commits mailing list