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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user