[fusion-commits] r2017 - trunk/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Sun Dec 13 21:43:51 EST 2009
Author: christinebao
Date: 2009-12-13 21:43:50 -0500 (Sun, 13 Dec 2009)
New Revision: 2017
Modified:
trunk/layers/MapGuide/MapGuideViewerApi.js
Log:
Fix ticket http://trac.osgeo.org/fusion/ticket/326
Query: One error happened once completing the Polygon drawn in previous Query condition.
Modified: trunk/layers/MapGuide/MapGuideViewerApi.js
===================================================================
--- trunk/layers/MapGuide/MapGuideViewerApi.js 2009-12-11 08:53:39 UTC (rev 2016)
+++ trunk/layers/MapGuide/MapGuideViewerApi.js 2009-12-14 02:43:50 UTC (rev 2017)
@@ -192,11 +192,13 @@
window.setTimeout(mgApiDeactivate, 100);
return false;
-}
-
-function mgApiDeactivate() {
- mgApiActiveControl.deactivate();
- mgApiActiveControl = null;
+}
+
+function mgApiDeactivate() {
+ if (mgApiActiveControl) {
+ mgApiActiveControl.deactivate();
+ mgApiActiveControl = null;
+ }
if (mgApiActiveWidget) {
var Fusion = window.top.Fusion;
var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
More information about the fusion-commits
mailing list