From ea86afec16b6d6dbe98b5de93924f02eca77ace4 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 2 Oct 2012 10:56:41 +0200 Subject: [PATCH] Addressing @sbrunner's review comment --- lib/OpenLayers/Format/WMTSCapabilities/v1_0_0.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Format/WMTSCapabilities/v1_0_0.js b/lib/OpenLayers/Format/WMTSCapabilities/v1_0_0.js index 413363b652..620b9ea5dc 100644 --- a/lib/OpenLayers/Format/WMTSCapabilities/v1_0_0.js +++ b/lib/OpenLayers/Format/WMTSCapabilities/v1_0_0.js @@ -199,12 +199,12 @@ OpenLayers.Format.WMTSCapabilities.v1_0_0 = OpenLayers.Class( if (!obj.resourceUrls) { obj.resourceUrls = []; } - var resourceType = obj.resourceUrl[resourceType] = { + var resourceUrl = obj.resourceUrl[resourceType] = { format: node.getAttribute("format"), template: node.getAttribute("template"), resourceType: resourceType }; - obj.resourceUrls.push(resourceType); + obj.resourceUrls.push(resourceUrl); }, // not used for now, can be added in the future though /*"Themes": function(node, obj) {