1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 02:47:58 +01:00

allow ^= to be used for prepending values to string options and for multiplying

number options
This commit is contained in:
Doug Kearns
2007-11-09 11:17:47 +00:00
parent 93348b6956
commit f2df0725ff
2 changed files with 130 additions and 71 deletions

View File

@@ -106,6 +106,14 @@ vimperator.Option = function(names, type, extra_info) //{{{
return false;
}
this.isValidValue = function(value)
{
if (this.validator)
return this.validator(value);
else
return true;
}
this.reset = function()
{
this.value = this.default_value;