rm toString

This commit is contained in:
Nicolas Stepien 2012-02-24 18:35:06 +01:00
parent e2056f1c87
commit c5ea31dd2b
2 changed files with 5 additions and 5 deletions

View File

@ -2995,7 +2995,7 @@
size /= 1024;
}
}
if (size < 1 && size.toString().length > size.toFixed(2).toString.length) {
if (size < 1 && size.toString().length > size.toFixed(2).length) {
size = size.toFixed(2);
}
}

View File

@ -2444,7 +2444,7 @@ FileInfo =
size *= 1024 while i-- > 0
else if i < 0
size /= 1024 while i++ < 0
if size < 1 and size.toString().length > size.toFixed(2).toString.length
if size < 1 and size.toString().length > size.toFixed(2).length
size = size.toFixed 2
"#{size} #{unitT}"
formatters: