From a903a1c9fe15a6ad82881e9656b0aa04958eef8b Mon Sep 17 00:00:00 2001 From: Lucas Lois Date: Sun, 2 Oct 2016 17:45:09 -0300 Subject: [PATCH] Made outside.js jshint compliant --- script/localization.js | 2 +- script/outside.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/script/localization.js b/script/localization.js index dd1aa9d..5e9c3d4 100644 --- a/script/localization.js +++ b/script/localization.js @@ -65,5 +65,5 @@ _('the compass points southwest') ]; - delete keywords; + keywords = null; })(); diff --git a/script/outside.js b/script/outside.js index 4fdfa0e..881bc43 100644 --- a/script/outside.js +++ b/script/outside.js @@ -619,14 +619,14 @@ var Outside = { } /// TRANSLATORS : Mind the whitespace at the end. var s = _('the traps contain '); - for(var i = 0, len = msg.length; i < len; i++) { - if(len > 1 && i > 0 && i < len - 1) { + for(var l = 0, len = msg.length; l < len; l++) { + if(len > 1 && l > 0 && l < len - 1) { s += ", "; - } else if(len > 1 && i == len - 1) { + } else if(len > 1 && l == len - 1) { /// TRANSLATORS : Mind the whitespaces at the beginning and end. s += _(" and "); } - s += msg[i]; + s += msg[l]; } var baitUsed = numBait < numTraps ? numBait : numTraps; @@ -643,7 +643,7 @@ var Outside = { Outside.updateVillage(); Outside.updateWorkersView(); Outside.updateVillageIncome(); - }; + } }, scrollSidebar: function(direction, reset) {