Force radix on parseInt-calls #37

Closed
pcvandam opened this Issue Feb 17, 2011 · 1 comment

Projects

None yet

2 participants

@pcvandam

You use parseInt quite a bit in your code without supplying the radix, which can cause some unwanted behavior.

parseInt('010') === 8;

use:

parseInt(val, 10);

@malsup
Owner

Fix will land in next update. Thanks.

@malsup malsup closed this May 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment