[Commits] r1794 - sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/widgets

commits at geoext.org commits at geoext.org
Thu Jan 21 12:20:11 CET 2010


Author: ahocevar
Date: 2010-01-21 12:20:11 +0100 (Thu, 21 Jan 2010)
New Revision: 1794

Modified:
   sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/widgets/MapPanel.js
Log:
fixed destroy sequence (see #205)

Modified: sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/widgets/MapPanel.js
===================================================================
--- sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/widgets/MapPanel.js	2010-01-21 11:18:21 UTC (rev 1793)
+++ sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/widgets/MapPanel.js	2010-01-21 11:20:11 UTC (rev 1794)
@@ -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