fix: 修复重载命令无效的BUG

This commit is contained in:
coding 2018-01-07 18:16:57 +00:00
parent c551cce685
commit 6272553e9b

View File

@ -241,7 +241,7 @@ var plugins = [];
function init(path) {
var plugin = exports.$
if (plugin !== null) {
// 如果plugin不等于null 则代表是正式环境
// 如果plugin不等于null 则代表是正式环境
console.info("初始化 MiaoScript 插件系统: %s".format(plugin));
}
loadPlugins(path);
@ -262,7 +262,7 @@ function disable() {
};
function reload() {
checkAndRun(arguments, function (p) {
checkAndGet(arguments).forEach(function (p) {
disable(p);
p = loadPlugin(p.__FILE__);
load(p);