Index: src/js/i18n.js |
diff --git a/src/js/i18n.js b/src/js/i18n.js |
index 7eac76fe1b86b67a56c33661b363e3328c02d53b..233f6c5c6f96514568dd6a5553f57fdf67556a7f 100644 |
--- a/src/js/i18n.js |
+++ b/src/js/i18n.js |
@@ -46,8 +46,6 @@ |
var StringSplit; |
var StringSubstr; |
var StringSubstring; |
-var StringToLowerCase = GlobalString.prototype.toLowerCase; |
-var StringToUpperCase = GlobalString.prototype.toUpperCase; |
utils.Import(function(from) { |
ArrayIndexOf = from.ArrayIndexOf; |
@@ -695,8 +693,8 @@ |
* Returns titlecased word, aMeRricA -> America. |
*/ |
function toTitleCaseWord(word) { |
- return %_Call(StringToUpperCase, %_Call(StringSubstr, word, 0, 1)) + |
- %_Call(StringToLowerCase, %_Call(StringSubstr, word, 1)); |
+ return %StringToUpperCase(%_Call(StringSubstr, word, 0, 1)) + |
+ %StringToLowerCase(%_Call(StringSubstr, word, 1)); |
} |
/** |
@@ -717,7 +715,7 @@ |
var parts = %_Call(StringSplit, match[2], separator); |
for (var i = 1; i < parts.length; i++) { |
var part = parts[i] |
- var lowercasedPart = %_Call(StringToLowerCase, part); |
+ var lowercasedPart = %StringToLowerCase(part); |
result = result + separator + |
((lowercasedPart !== 'es' && |
lowercasedPart !== 'of' && lowercasedPart !== 'au') ? |
@@ -1157,8 +1155,7 @@ |
var currencyDisplay = getOption( |
'currencyDisplay', 'string', ['code', 'symbol', 'name'], 'symbol'); |
if (internalOptions.style === 'currency') { |
- defineWEProperty(internalOptions, 'currency', |
- %_Call(StringToUpperCase, currency)); |
+ defineWEProperty(internalOptions, 'currency', %StringToUpperCase(currency)); |
defineWEProperty(internalOptions, 'currencyDisplay', currencyDisplay); |
} |
@@ -1792,7 +1789,7 @@ |
} |
// Special case handling (UTC, GMT). |
- var upperID = %_Call(StringToUpperCase, tzID); |
+ var upperID = %StringToUpperCase(tzID); |
if (upperID === 'UTC' || upperID === 'GMT' || |
upperID === 'ETC/UTC' || upperID === 'ETC/GMT') { |
return 'UTC'; |