remove some brackets

This commit is contained in:
rolux 2012-11-14 15:16:49 +01:00
parent 666815f566
commit 34cef100ad

View file

@ -27,7 +27,7 @@ Ox.formatCount <f> Returns a string like "2 items", "1 item" or "no items".
@*/
Ox.formatCount = function(number, singular, plural) {
return (number === 0 ? 'no' : Ox.formatNumber(number)) + ' '
+ ((number === 1) ? singular : plural || singular + 's');
+ (number === 1 ? singular : plural || singular + 's');
};
/*@