From 95128df6b9f2741286b9c9ca5a25d9337044f8d0 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Fri, 29 Jul 2011 10:30:59 -0500 Subject: [PATCH] Fix nesting - iterating over areas versus residences --- web/js/regions_Residence.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/js/regions_Residence.js b/web/js/regions_Residence.js index 822e05d3..a8b5c0cd 100644 --- a/web/js/regions_Residence.js +++ b/web/js/regions_Residence.js @@ -17,15 +17,15 @@ regionConstructors['Residence'] = function(dynmap, configuration) { }))); boxLayers.push(boxLayer); - $.each(residence.Subzones, function(szname, subzone) { - $.each(subzone.Areas, function(name2, area2) { - var subzoneLayer = configuration.createBoxLayer(area2.X1, area2.X2, area2.Y1, area2.Y2, area2.Z1, area2.Z2); - subzoneLayer.bindPopup(configuration.createPopupContent(name2, $.extend(subzone, { - owners: { players: [subzone.Permissions.Owner] }, - flags: subzone.Permissions.AreaFlags - }))); - boxLayers.push(subzoneLayer); - }); + }); + $.each(residence.Subzones, function(szname, subzone) { + $.each(subzone.Areas, function(name2, area2) { + var subzoneLayer = configuration.createBoxLayer(area2.X1, area2.X2, area2.Y1, area2.Y2, area2.Z1, area2.Z2); + subzoneLayer.bindPopup(configuration.createPopupContent(name2, $.extend(subzone, { + owners: { players: [subzone.Permissions.Owner] }, + flags: subzone.Permissions.AreaFlags + }))); + boxLayers.push(subzoneLayer); }); }); }