1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 18:57:58 +01:00

always specify the radix arg when calling parseInt rather than rely on it

'guessing' correctly
This commit is contained in:
Doug Kearns
2007-11-07 11:16:53 +00:00
parent 14e4cf2f56
commit 18f6f3e8c6
5 changed files with 8 additions and 8 deletions

View File

@@ -207,7 +207,7 @@ vimperator.Commands = function() //{{{
// parse count
if (matches[0])
matches[0] = parseInt(matches[0]);
matches[0] = parseInt(matches[0], 10);
else
matches[0] = -1;
@@ -1301,7 +1301,7 @@ vimperator.Commands = function() //{{{
}
else if (type == "number")
{
var num = parseInt(val, 10);
var num = parseInt(val);
if (isNaN(num))
vimperator.echoerr("E521: Number required after =: " + option.name + "=" + val);
else
@@ -1483,7 +1483,7 @@ vimperator.Commands = function() //{{{
}
else if (/^\d+$/.test(args))
{
var index = parseInt(args) - 1;
var index = parseInt(args, 10) - 1;
if (index < vimperator.tabs.count())
vimperator.tabs.select(index, true);
else