Search code examples
facebookundefinedfbjsparseint

parseInt returns undefined


Facebook's code changes on Tuesday night have impacted how parseInt works in FBJS. Where I previously used it to convert decimal numbers to straight integers, now it always returns undefined.

For example:

return parseInt(decimalnum);

no longer works. Anyone figured out how we are supposed to round to integers now? Thanks.


Solution

  • Thanks for the report. It's fixed on trunk now; it should be out tomorrow unless there's another push later today.