Diffstat (limited to 'frontend/gamma/js/MochiKit/Format.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/js/MochiKit/Format.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/frontend/gamma/js/MochiKit/Format.js b/frontend/gamma/js/MochiKit/Format.js index 122845e..58877e7 100644 --- a/frontend/gamma/js/MochiKit/Format.js +++ b/frontend/gamma/js/MochiKit/Format.js @@ -9,5 +9,5 @@ See <http://mochikit.com/> for documentation, downloads, license, etc. ***/ -MochiKit.Base._module('Format', '1.5', ['Base']); +MochiKit.Base.module(MochiKit, 'Format', '1.5', ['Base']); MochiKit.Format._numberFormatter = function (placeholder, header, footer, locale, isPercent, precision, leadingZeros, separatorAt, trailingZeros) { @@ -105,5 +105,5 @@ MochiKit.Format.numberFormatter = function (pattern, placeholder/* = "" */, loca self.NAME, "(", - map(m.repr, args).join(", "), + m.map(m.repr, args).join(", "), ")" ].join(""); @@ -143,5 +143,5 @@ MochiKit.Format.twoDigitAverage = function (numerator, denominator) { /** @id MochiKit.Format.twoDigitFloat */ MochiKit.Format.twoDigitFloat = function (aNumber) { - var res = roundToFixed(aNumber, 2); + var res = MochiKit.Format.roundToFixed(aNumber, 2); if (res.indexOf(".00") > 0) { return res.substring(0, res.length - 3); @@ -194,5 +194,5 @@ MochiKit.Format.truncToFixed = function (aNumber, precision) { } return fixed; -} +}; /** @id MochiKit.Format.roundToFixed */ @@ -206,5 +206,5 @@ MochiKit.Format.roundToFixed = function (aNumber, precision) { } return fixed; -} +}; /** @@ -222,5 +222,5 @@ MochiKit.Format._numberToFixed = function (aNumber, precision) { var str = aNumber.toString(); var parts = str.split(/[eE]/); - var exp = (parts.length === 1) ? 0 : parseInt(parts[1]) || 0; + var exp = (parts.length === 1) ? 0 : parseInt(parts[1], 10) || 0; var fixed = MochiKit.Format._shiftNumber(parts[0], exp); parts = fixed.split(/\./); @@ -235,5 +235,5 @@ MochiKit.Format._numberToFixed = function (aNumber, precision) { return whole; } -} +}; /** @@ -276,5 +276,5 @@ MochiKit.Format._shiftNumber = function (num, exp) { } return num; -} +}; /** @id MochiKit.Format.percentFormat */ |