Default parseInt radix to 10
<p>One of the bad parts of JavaScript is that if you use parseInt with something that begins with 0, then it could see the number as a octal.</p>

<pre><code>i = parseInt(014); // Answer: 12
</code></pre>

<p>Q: How can I redefine parseInt so that it defaults to radix 10?  I'm assuming you would use the prototype method.</p>

<p>Edit:</p>

<p>Maybe I should do this:</p>

<pre><code>$.fn.extend({
    parseInt:function(X) {
        return parseInt(X,10);
    }
});
</code></pre>
