1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 17:42:27 +01:00

Fix CommandOption.INT parsing. Closes issue #293.

This commit is contained in:
Kris Maglione
2011-01-22 13:01:38 -05:00
parent b5d7d3e4ff
commit 0989bbcbf4

View File

@@ -69,12 +69,12 @@ update(CommandOption, {
* @property {object} The option accepts an integer argument.
* @final
*/
INT: ArgType("int", parseInt),
INT: ArgType("int", function (val) parseInt(val)),
/**
* @property {object} The option accepts a float argument.
* @final
*/
FLOAT: ArgType("float", parseFloat),
FLOAT: ArgType("float", function (val) parseFloat(val)),
/**
* @property {object} The option accepts a string list argument.
* E.g. "foo,bar"