Made outside.js jshint compliant

This commit is contained in:
Lucas Lois
2016-10-02 17:45:09 -03:00
parent 8370eac8aa
commit a903a1c9fe
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -65,5 +65,5 @@
_('the compass points southwest') _('the compass points southwest')
]; ];
delete keywords; keywords = null;
})(); })();
+5 -5
View File
@@ -619,14 +619,14 @@ var Outside = {
} }
/// TRANSLATORS : Mind the whitespace at the end. /// TRANSLATORS : Mind the whitespace at the end.
var s = _('the traps contain '); var s = _('the traps contain ');
for(var i = 0, len = msg.length; i < len; i++) { for(var l = 0, len = msg.length; l < len; l++) {
if(len > 1 && i > 0 && i < len - 1) { if(len > 1 && l > 0 && l < len - 1) {
s += ", "; s += ", ";
} else if(len > 1 && i == len - 1) { } else if(len > 1 && l == len - 1) {
/// TRANSLATORS : Mind the whitespaces at the beginning and end. /// TRANSLATORS : Mind the whitespaces at the beginning and end.
s += _(" and "); s += _(" and ");
} }
s += msg[i]; s += msg[l];
} }
var baitUsed = numBait < numTraps ? numBait : numTraps; var baitUsed = numBait < numTraps ? numBait : numTraps;
@@ -643,7 +643,7 @@ var Outside = {
Outside.updateVillage(); Outside.updateVillage();
Outside.updateWorkersView(); Outside.updateWorkersView();
Outside.updateVillageIncome(); Outside.updateVillageIncome();
}; }
}, },
scrollSidebar: function(direction, reset) { scrollSidebar: function(direction, reset) {