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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Apr 17 04:35:17 PDT 2014


Author: jng
Date: 2014-04-17 04:35:17 -0700 (Thu, 17 Apr 2014)
New Revision: 8054

Modified:
   trunk/MgDev/Web/src/viewerfiles/legendui.templ
Log:
#2416: Mixed up my i's and j's again.

Modified: trunk/MgDev/Web/src/viewerfiles/legendui.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/legendui.templ	2014-04-16 15:59:20 UTC (rev 8053)
+++ trunk/MgDev/Web/src/viewerfiles/legendui.templ	2014-04-17 11:35:17 UTC (rev 8054)
@@ -1020,12 +1020,10 @@
                     if (bCurrentScaleThemed && themeEl) {
                         themeEl.style.display = "block";
                     }
-                    for (var i = 0; i < node.children.length; i++) {
-                        if (i == nodeCurScale) {
-                            continue;
-                        } else {
+                    for (var j = 0; j < node.children.length; j++) {
+                        if (j != nodeCurScale) {
                             // Need to hide any previously set theme rule HTML for other scales
-                            var bThemed = (node.children[i].children.length > 1);
+                            var bThemed = (node.children[j].children.length > 1);
                             if (bThemed && !bCurrentScaleThemed) {
                                 if (themeEl)
                                     themeEl.style.display = "none";



More information about the mapguide-commits mailing list