feat: 优化插件加载逻辑

This commit is contained in:
coding
2018-01-04 12:43:34 +00:00
parent 15672ea461
commit 10f5448259
3 changed files with 31 additions and 34 deletions

View File

@ -57,15 +57,6 @@ function register(jsp, cmd) {
return cmd;
}
// var exec = {
// cmd: function (sender, command, args) {
//
// },
// tab: function (sender, command, args) {
//
// }
// };
function on(jsp, name, exec) {
var c = get(name) || create(jsp, name);
console.debug('插件 %s 设置命令 %s(%s) 执行器 ...'.format(jsp.description.name, name, c));