fixes a few missing semicolon

This was SVN commit r19025.
This commit is contained in:
mimo
2016-12-07 18:06:12 +00:00
parent e7e5631135
commit f01e932ce3
6 changed files with 8 additions and 8 deletions
@@ -47,7 +47,7 @@ function Resources()
this.resourceCodes.push(data.code);
this.resourceNames[data.code] = data.name;
for (let subres in data.subtypes)
this.resourceNames[subres] = data.subtypes[subres]
this.resourceNames[subres] = data.subtypes[subres];
}
// Sort arrays by specified order
@@ -60,7 +60,7 @@ function Resources()
this.resourceData.find(resource => resource.code == a),
this.resourceData.find(resource => resource.code == b)
));
};
}
/**
* Returns the objects defined in the JSON files for all availbale resources,
@@ -370,7 +370,7 @@ function GetTechnologyDataHelper(template, civ, resources)
ret.icon = template.icon ? "technologies/" + template.icon : null;
ret.cost = { "time": template.researchTime ? +template.researchTime : 0 }
ret.cost = { "time": template.researchTime ? +template.researchTime : 0 };
for (let type of resources.GetCodes())
ret.cost[type] = template.cost ? +template.cost[type] : 0;
@@ -77,7 +77,7 @@ Vector2D.prototype.rotate = function(a)
this.x = x;
this.y = y;
return this;
}
};
// Numeric 2D info functions (non-mutating)
//
@@ -85,7 +85,7 @@ function getDisconnectReason(id, wasConnected)
function reportDisconnect(reason, wasConnected)
{
// Translation: States the reason why the client disconnected from the server.
let reasonText = sprintf(translate("Reason: %(reason)s."), { "reason": getDisconnectReason(reason, wasConnected) })
let reasonText = sprintf(translate("Reason: %(reason)s."), { "reason": getDisconnectReason(reason, wasConnected) });
messageBox(
400, 200,
@@ -732,7 +732,7 @@ function confirmExit()
let subject = g_PlayerStateMessages[g_ConfirmExit];
if (askExit)
subject += "\n" + translate("Do you want to quit?")
subject += "\n" + translate("Do you want to quit?");
messageBox(
400, 200,
@@ -57,7 +57,7 @@ Resources.prototype.BuildSchema = function(datatype, additional = [], subtypes =
"</optional>";
return "<interleave>" + schema + "</interleave>";
}
};
/**
* Builds the value choices for a RelaxNG `<choice></choice>` object, based on currently valid resources.
@@ -88,6 +88,6 @@ Resources.prototype.BuildChoicesSchema = function(subtypes = false, treasure = f
}
return "<choice>" + schema + "</choice>";
}
};
Resources = new Resources();