mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 12:53:32 +02:00
add all commands by name as properties of vimperator.commands
This commit is contained in:
@@ -189,6 +189,10 @@ function Commands()//{{{
|
|||||||
function addDefaultCommand(command)
|
function addDefaultCommand(command)
|
||||||
{
|
{
|
||||||
ex_commands.push(command);
|
ex_commands.push(command);
|
||||||
|
Commands.prototype[command.name] = function(args, special, count, modifiers)
|
||||||
|
{
|
||||||
|
command.execute(args, special, count, modifiers);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function commandsIterator()
|
function commandsIterator()
|
||||||
|
|||||||
Reference in New Issue
Block a user