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

commits at geoext.org commits at geoext.org
Fri Jan 22 09:09:42 CET 2010


Author: ahocevar
Date: 2010-01-22 09:09:42 +0100 (Fri, 22 Jan 2010)
New Revision: 1803

Modified:
   core/trunk/geoext/lib/GeoExt/widgets/MapPanel.js
Log:
fixed destroy sequence so items with references to the map can be destroyed first. r=elemoine (closes #205)

Modified: core/trunk/geoext/lib/GeoExt/widgets/MapPanel.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/MapPanel.js	2010-01-22 08:08:01 UTC (rev 1802)
+++ core/trunk/geoext/lib/GeoExt/widgets/MapPanel.js	2010-01-22 08:09:42 UTC (rev 1803)
@@ -207,6 +207,7 @@
         if(this.ownerCt) {
             this.ownerCt.un("move", this.updateMapSize, this);
         }
+        GeoExt.MapPanel.superclass.beforeDestroy.apply(this, arguments);
         /**
          * If this container was passed a map instance, it is the
          * responsibility of the creator to destroy it.
@@ -219,7 +220,6 @@
             }
         }
         delete this.map;
-        GeoExt.MapPanel.superclass.beforeDestroy.apply(this, arguments);
     }
     
 });



More information about the Commits mailing list