[mapguide-commits] r7722 - branches/2.5/MgDev/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Aug 2 05:41:42 PDT 2013


Author: jng
Date: 2013-08-02 05:41:41 -0700 (Fri, 02 Aug 2013)
New Revision: 7722

Modified:
   branches/2.5/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
#2267: Don't call parent.InMeasure or parent.ForwardMouseDown if they're not ready.

Modified: branches/2.5/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- branches/2.5/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2013-08-02 12:33:26 UTC (rev 7721)
+++ branches/2.5/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2013-08-02 12:41:41 UTC (rev 7722)
@@ -892,7 +892,8 @@
         hidePopup(tbMenu);
         hidePopup(ctxMenu);
         hidePopup(infoMenu);
-        parent.ForwardMouseDown(document, e);
+        if (typeof(parent.ForwardMouseDown) == 'function') //May not be ready
+            parent.ForwardMouseDown(document, e);
     }
     else
         return false;
@@ -1293,7 +1294,7 @@
             hlData.url = "";
             if(!IsInSliderSpace(x, y, true))
             {
-                if(!parent.InMeasure())
+                if(typeof(parent.InMeasure) == 'function' && !parent.InMeasure())
                 {
                     if(x >= 0 && haveTooltip)
                     {



More information about the mapguide-commits mailing list