summaryrefslogtreecommitdiff
path: root/frontend/gamma/js/MochiKit/Format.js
Unidiff
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.
10 10
11MochiKit.Base._module('Format', '1.5', ['Base']); 11MochiKit.Base.module(MochiKit, 'Format', '1.5', ['Base']);
12 12
@@ -106,3 +106,3 @@ MochiKit.Format.numberFormatter = function (pattern, placeholder/* = "" */, loca
106 "(", 106 "(",
107 map(m.repr, args).join(", "), 107 m.map(m.repr, args).join(", "),
108 ")" 108 ")"
@@ -144,3 +144,3 @@ MochiKit.Format.twoDigitAverage = function (numerator, denominator) {
144MochiKit.Format.twoDigitFloat = function (aNumber) { 144MochiKit.Format.twoDigitFloat = function (aNumber) {
145 var res = roundToFixed(aNumber, 2); 145 var res = MochiKit.Format.roundToFixed(aNumber, 2);
146 if (res.indexOf(".00") > 0) { 146 if (res.indexOf(".00") > 0) {
@@ -195,3 +195,3 @@ MochiKit.Format.truncToFixed = function (aNumber, precision) {
195 return fixed; 195 return fixed;
196} 196};
197 197
@@ -207,3 +207,3 @@ MochiKit.Format.roundToFixed = function (aNumber, precision) {
207 return fixed; 207 return fixed;
208} 208};
209 209
@@ -223,3 +223,3 @@ MochiKit.Format._numberToFixed = function (aNumber, precision) {
223 var parts = str.split(/[eE]/); 223 var parts = str.split(/[eE]/);
224 var exp = (parts.length === 1) ? 0 : parseInt(parts[1]) || 0; 224 var exp = (parts.length === 1) ? 0 : parseInt(parts[1], 10) || 0;
225 var fixed = MochiKit.Format._shiftNumber(parts[0], exp); 225 var fixed = MochiKit.Format._shiftNumber(parts[0], exp);
@@ -236,3 +236,3 @@ MochiKit.Format._numberToFixed = function (aNumber, precision) {
236 } 236 }
237} 237};
238 238
@@ -277,3 +277,3 @@ MochiKit.Format._shiftNumber = function (num, exp) {
277 return num; 277 return num;
278} 278};
279 279