[Commits] r550 - apps/opengeo/geoexplorer/trunk/lib

commits at geoext.org commits at geoext.org
Thu Apr 30 18:41:39 CEST 2009


Author: dwins
Date: 2009-04-30 18:41:39 +0200 (Thu, 30 Apr 2009)
New Revision: 550

Modified:
   apps/opengeo/geoexplorer/trunk/lib/MapToolSplitToggle.js
Log:
Fix the case where the user activates the tool by choosing the non-default mode the first time (phew!) #175


Modified: apps/opengeo/geoexplorer/trunk/lib/MapToolSplitToggle.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/MapToolSplitToggle.js	2009-04-30 06:23:05 UTC (rev 549)
+++ apps/opengeo/geoexplorer/trunk/lib/MapToolSplitToggle.js	2009-04-30 16:41:39 UTC (rev 550)
@@ -134,8 +134,8 @@
         for (var i = 0, len = this.tools.length; i < len; i++) {
             var t = this.tools[i].tool || this.tools[i];
             if (t.active) {
+               this.lastActiveTool = t;
                this.toggle(true);
-               this.lastActiveTool = t;
             }
         }
     },



More information about the Commits mailing list