Update morris.js

This commit is contained in:
Vazgen Torosyan 2017-03-13 13:01:40 +04:00 committed by GitHub
parent 14530d0733
commit 62bd692d2b

View File

@ -50,7 +50,8 @@ Licensed under the BSD-2-Clause License.
})(); })();
Morris.commas = function(num) { Morris.commas = function(num) {
var absnum, intnum, ret, strabsnum; var ret='-';
var absnum, intnum, strabsnum;
if (num != null) { if (num != null) {
ret = num < 0 ? "-" : ""; ret = num < 0 ? "-" : "";
absnum = Math.abs(num); absnum = Math.abs(num);
@ -61,9 +62,6 @@ Licensed under the BSD-2-Clause License.
ret += strabsnum.slice(intnum.length); ret += strabsnum.slice(intnum.length);
} }
return ret; return ret;
} else {
return '-';
}
}; };
Morris.pad2 = function(number) { Morris.pad2 = function(number) {