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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -