add back commands.byName
This commit is contained in:
parent
04cc031da6
commit
c9077acbd5
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ var EventEmitter = require("../lib/event_emitter").EventEmitter;
|
||||||
|
|
||||||
var CommandManager = function(platform, commands) {
|
var CommandManager = function(platform, commands) {
|
||||||
HashHandler.call(this, commands, platform);
|
HashHandler.call(this, commands, platform);
|
||||||
|
this.byName = this.commands;
|
||||||
this.setDefaultHandler("exec", function(e) {
|
this.setDefaultHandler("exec", function(e) {
|
||||||
return e.command.exec(e.editor, e.args || {});
|
return e.command.exec(e.editor, e.args || {});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue