From 1ac5158dcfca16b31f8d9e63c91fe7ce73bcfdd1 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Wed, 11 Feb 2015 23:05:08 +0000 Subject: [PATCH] remove raw from portal details - not something best to encourage access to comments concerning new data[10] index in map data --- code/map_data_render.js | 1 + code/portal_detail.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/map_data_render.js b/code/map_data_render.js index 7f853d96..4dfc1c78 100644 --- a/code/map_data_render.js +++ b/code/map_data_render.js @@ -245,6 +245,7 @@ window.Render.prototype.createPortalEntity = function(ent) { image: ent[2][7], title: ent[2][8], ornaments: ent[2][9] + // and a new ent[2][10] ??? - maybe mission markers for portals? }; var dataOptions = { diff --git a/code/portal_detail.js b/code/portal_detail.js index 02175fd6..7cde24d0 100644 --- a/code/portal_detail.js +++ b/code/portal_detail.js @@ -50,13 +50,13 @@ var handleResponse = function(guid, data, success) { }; } - if (data.error || !data.result) { + if (!data || data.error || !data.result) { success = false; } if (success) { var dict = { - raw: data.result, +// raw: data.result, type: data.result[0], team: data.result[1], latE6: data.result[2],