Use StringUtil.parseInteger.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4724 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-05-25 21:19:50 +00:00
parent df27e347f0
commit fed8aceae5
+2 -5
View File
@@ -176,11 +176,8 @@ public class MessageBundle
if (getResourceString(key + ".n", false) != null) {
// try converting the first arg to an int
try {
var n :Number = parseInt(args[0]);
if (!isNaN(n)) {
args[0] = n;
msg = getResourceString(key + getSuffix(args), false);
}
args[0] = StringUtil.parseInteger(args[0]);
msg = getResourceString(key + getSuffix(args), false);
} catch (err :Error) {
// fall through...
}