I can insert text again
This commit is contained in:
parent
a58da119b7
commit
6808e3bb35
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ var CommandManager = function(commands) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.exec = function(command, env, args) {
|
this.exec = function(command, env, args) {
|
||||||
|
if (typeof command === 'string')
|
||||||
|
command = this.commands[command];
|
||||||
|
|
||||||
command.exec(env, args || {});
|
command.exec(env, args || {});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue