Javascript error from numeral.js when minified -
i getting javascript error numeral.js (1.5.3) when our js files minified.
uncaught typeerror: cannot read property 'length' of undefined.
since it's minified not sure on line error is, when click on error message in chrome, cursor goes here, guessing 'length' thats failing.
..... a=a.split(".")[1].length?o[p].delimiters.decimal+a.split(".")[1]:"".....
this call numeral.js made.
var percentage = '3.98385103884072e-03'; var formattedpct = numeral(math.abs(percentage)).format('0.0000');
it works fine when files not minified. idea should into?
thanks.
Comments
Post a Comment