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

commits at geoext.org commits at geoext.org
Wed Sep 15 10:38:58 CEST 2010


Author: fredj
Date: 2010-09-15 10:38:58 +0200 (Wed, 15 Sep 2010)
New Revision: 2352

Modified:
   core/trunk/geoext/lib/GeoExt/widgets/ZoomSlider.js
Log:
remove special treatment for Ext 2 (afterrender event). r=elemoine (closes #326)

Modified: core/trunk/geoext/lib/GeoExt/widgets/ZoomSlider.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/widgets/ZoomSlider.js	2010-09-15 07:51:08 UTC (rev 2351)
+++ core/trunk/geoext/lib/GeoExt/widgets/ZoomSlider.js	2010-09-15 08:38:58 UTC (rev 2352)
@@ -132,24 +132,6 @@
      *  Called by a MapPanel if this component is one of the items in the panel.
      */
     addToMapPanel: function(panel) {
-        /**
-         * TODO: Remove this when we drop support for Ext 2.
-         * We need special treatment for Ext 2 because components don't have
-         * the "afterrender" event.  Here we wait until the render sequence
-         * finishes before binding the component to the map.
-         */
-        // START SPECIAL TREATMENT FOR EXT 2
-        if (!this.events.afterrender) {
-            this.on({
-                render: function() {
-                    window.setTimeout(
-                        this.bind.createDelegate(this, [panel.map]), 0
-                    );
-                },
-                scope: this
-            });
-        }
-        // END SPECIAL TREATMENT FOR EXT 2
         this.on({
             render: function() {
                 var el = this.getEl();



More information about the Commits mailing list