[mapguide-commits] r5484 - trunk/MgDev/Web/src/viewerfiles

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Dec 27 02:08:21 EST 2010


Author: liuar
Date: 2010-12-26 23:08:21 -0800 (Sun, 26 Dec 2010)
New Revision: 5484

Modified:
   trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
Log:
In ajaxmappane.js, the the local variable names for exception and event are the same - e, which causes the event e overrided by the exception e.
I update the exception variable name to ex to avoid overriding the event argument. 

Modified: trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2010-12-22 08:54:59 UTC (rev 5483)
+++ trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ	2010-12-27 07:08:21 UTC (rev 5484)
@@ -528,7 +528,7 @@
     {
         document.getElementById("InfoDiv").style.display = "block";
     }
-    catch(e)
+    catch(ex)
     {
     }
     if((orgExtX1 - orgExtX2) == 0 || (orgExtY1 - orgExtY2) == 0)
@@ -576,7 +576,7 @@
         if(!GetLegendCtrl().InternalStateComplete())
             return;
     }
-    catch(e)
+    catch(ex)
     {
         return;
     }
@@ -918,11 +918,11 @@
     
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-    e.cancelBubble = true;
+        e.cancelBubble = true;
     }
 
 
@@ -1016,11 +1016,11 @@
     //e.cancelBubble = true;
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-      e.cancelBubble = true;
+        e.cancelBubble = true;
     }
     
     return false;
@@ -1198,17 +1198,17 @@
     {
         document.getElementById("mapSpace").setCapture();
     }
-    catch(e)
+    catch(ex)
     {
     }
         
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-      e.cancelBubble = true;
+        e.cancelBubble = true;
     }
         
     return false;
@@ -1224,7 +1224,7 @@
     }
     lastposx = x; lastposy = y;
 
-    try { parent.OnCursorPosChanged(x, y); } catch(e) {}
+    try { parent.OnCursorPosChanged(x, y); } catch(ex) {}
 
     if(digitizing)
     {
@@ -1284,11 +1284,11 @@
     var y = e.clientY;
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-    e.cancelBubble = true;
+        e.cancelBubble = true;
     }
 
     if(digitizing)
@@ -1313,7 +1313,7 @@
         {
             document.getElementById("mapSpace").releaseCapture();
         }
-        catch(e)
+        catch(ex)
         {
         }
         return true;
@@ -1382,7 +1382,7 @@
     {
         ShowChildren(infoDiv, "block");
     }
-    catch(e)
+    catch(ex)
     {
         ShowChildren(infoDiv, "visible");
     }
@@ -1403,7 +1403,7 @@
         {
             elt.style.visibility = state;
         }
-        catch(e)
+        catch(ex)
         {
             elt.style.display = state;//for msie
         }
@@ -1869,11 +1869,11 @@
 
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-    e.cancelBubble = true;
+        e.cancelBubble = true;
     }
     
     var overlayimg = document.getElementById("mapImage");
@@ -1939,11 +1939,11 @@
 {
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-    e.cancelBubble = true;
+        e.cancelBubble = true;
     }
     
     var selectionOverlayImg = document.getElementById("selectionImage");
@@ -2157,11 +2157,11 @@
 {
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-    e.cancelBubble = true;
+        e.cancelBubble = true;
     }
     
     if(sci == 0)
@@ -2174,11 +2174,11 @@
 {
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-    e.cancelBubble = true;
+        e.cancelBubble = true;
     }
             
     if(sci == scales.length - 1)
@@ -3018,7 +3018,7 @@
                     selection.layers.removeItem(layerId);
             }
         }
-        catch(e) {}
+        catch(ex) {}
 
         if(selectionChanged || prevCount != selection.count)
         {
@@ -3058,7 +3058,7 @@
             if(hlinkElt != null)
                 hlData.url = hlinkElt.childNodes[0].nodeValue;
         }
-        catch(e)
+        catch(ex)
         {
             hlData.url = "";
         }
@@ -3068,7 +3068,7 @@
             if(ttipElt != null)
                 hlData.ttip = ttipElt.childNodes[0].nodeValue;
         }
-        catch(e) {}
+        catch(ex) {}
     }
 }
 
@@ -3174,7 +3174,7 @@
         env.upperRight.Y = parseFloat(ys[1].childNodes[0].nodeValue);
         return env;
     }
-    catch(e) {}
+    catch(ex) {}
     return null;
 }
 
@@ -3233,12 +3233,12 @@
     
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-      e.cancelBubble = true;
-      document.getElementById("LegendResizer").setCapture();
+        e.cancelBubble = true;
+        document.getElementById("LegendResizer").setCapture();
     }
     
     return false;
@@ -3262,11 +3262,11 @@
     
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-      e.cancelBubble = true;
+        e.cancelBubble = true;
     }
     return false;
 }
@@ -3275,11 +3275,11 @@
 {
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-      e.cancelBubble = true;
+        e.cancelBubble = true;
     }
     switch(dir)
     {
@@ -3297,11 +3297,11 @@
     y = (msie?event.clientY: e.clientY);
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-      e.cancelBubble = true;
+        e.cancelBubble = true;
     }
 
     moveType = DRAGGINGCTRL;
@@ -3669,7 +3669,7 @@
     reqParams = "OPERATION=QUERYMAPFEATURES&VERSION=1.0.0&PERSIST=0&MAPNAME=" + encodeURIComponent(mapName) + "&SESSION=" + sessionId + "&SEQ=" + Math.random() + "&LAYERNAMES=" + encodeURIComponent(GetVisLayers()) + "&GEOMETRY=" + geom + "&SELECTIONVARIANT=INTERSECTS&MAXFEATURES=1&LAYERATTRIBUTEFILTER=5" + "&CLIENTAGENT=" + encodeURIComponent(clientAgent);
     obj = new HlRequest(id, x, y, req, exec);
     req.onreadystatechange = obj.OnHl;
-    try { req.send(reqParams); } catch(e) {}
+    try { req.send(reqParams); } catch(ex) {}
 }
 
 function ProcessHyperLinkdata(id, x, y, exec, xml)
@@ -4225,11 +4225,11 @@
 {
     try
     {
-      e.stopPropagation();
+        e.stopPropagation();
     }
-    catch(e)
+    catch(ex)
     {
-      e.cancelBubble = true;
+        e.cancelBubble = true;
     }
     return true;
 }



More information about the mapguide-commits mailing list