summaryrefslogtreecommitdiff
path: root/frontend/gamma/js/MochiKit/Format.js
Side-by-side diff
Diffstat (limited to 'frontend/gamma/js/MochiKit/Format.js') (more/less context) (ignore whitespace changes)
-rw-r--r--frontend/gamma/js/MochiKit/Format.js16
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
@@ -10,3 +10,3 @@ See <http://mochikit.com/> for documentation, downloads, license, etc.
-MochiKit.Base._module('Format', '1.5', ['Base']);
+MochiKit.Base.module(MochiKit, 'Format', '1.5', ['Base']);
@@ -106,3 +106,3 @@ MochiKit.Format.numberFormatter = function (pattern, placeholder/* = "" */, loca
"(",
- map(m.repr, args).join(", "),
+ m.map(m.repr, args).join(", "),
")"
@@ -144,3 +144,3 @@ MochiKit.Format.twoDigitAverage = function (numerator, denominator) {
MochiKit.Format.twoDigitFloat = function (aNumber) {
- var res = roundToFixed(aNumber, 2);
+ var res = MochiKit.Format.roundToFixed(aNumber, 2);
if (res.indexOf(".00") > 0) {
@@ -195,3 +195,3 @@ MochiKit.Format.truncToFixed = function (aNumber, precision) {
return fixed;
-}
+};
@@ -207,3 +207,3 @@ MochiKit.Format.roundToFixed = function (aNumber, precision) {
return fixed;
-}
+};
@@ -223,3 +223,3 @@ MochiKit.Format._numberToFixed = function (aNumber, precision) {
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);
@@ -236,3 +236,3 @@ MochiKit.Format._numberToFixed = function (aNumber, precision) {
}
-}
+};
@@ -277,3 +277,3 @@ MochiKit.Format._shiftNumber = function (num, exp) {
return num;
-}
+};