update Ox.formatUnit
This commit is contained in:
parent
f6a767b6cb
commit
487ee4626d
1 changed files with 2 additions and 2 deletions
|
@ -684,7 +684,7 @@ Ox.formatUnit <f> Formats a number with a unit
|
||||||
@*/
|
@*/
|
||||||
Ox.formatUnit = function(number, string, decimals) {
|
Ox.formatUnit = function(number, string, decimals) {
|
||||||
return Ox.formatNumber(number, decimals)
|
return Ox.formatNumber(number, decimals)
|
||||||
+ (string == '%' ? '' : ' ') + string;
|
+ (/^[:%]/.test(string) ? '' : ' ') + string;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
|
|
Loading…
Reference in a new issue