From 7ebb0f9624b2d6152326e2f25f4c5277ddc09bbe Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Fri, 8 Feb 2013 01:40:41 +0100 Subject: [PATCH] nits for last merge --- code/portal_detail_display_tools.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/portal_detail_display_tools.js b/code/portal_detail_display_tools.js index a894e3a4..91172ee3 100644 --- a/code/portal_detail_display_tools.js +++ b/code/portal_detail_display_tools.js @@ -40,12 +40,11 @@ window.getModDetails = function(d) { title += '\nStats:'; for (var key in mod.stats) { - if (mod.stats.hasOwnProperty(key)) { - title += '\n+' + mod.stats[key] + ' ' + key.capitalize(); - } + if (!mod.stats.hasOwnProperty(key)) continue; + title += '\n+' + mod.stats[key] + ' ' + key.capitalize(); } - mods.push(mod.rarity.capitalize() + ' ' + mod.displayName); + mods.push(mod.rarity.capitalize().replace('_', ' ') + ' ' + mod.displayName); modsTitle.push(title); } else { mods.push(mod.type);