mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
+6
-3
@@ -100,7 +100,10 @@ kit.config = kit.config || {};
|
|||||||
config.loader = loader;
|
config.loader = loader;
|
||||||
config.type = 'loader';
|
config.type = 'loader';
|
||||||
if(this.__checkState(pluginId, stateList.registered)) {
|
if(this.__checkState(pluginId, stateList.registered)) {
|
||||||
plugin.stateInit.installing = false;
|
if(this.__checkState(pluginId, stateList.loaded)){
|
||||||
|
plugin.stateInit.installing = false;
|
||||||
|
}
|
||||||
|
//console.log(`PluginManager.register(${pluginId}): (${plugin.state} > ${stateList.registered})`);
|
||||||
plugin.state = stateList.registered;
|
plugin.state = stateList.registered;
|
||||||
if(plugin.config.autoRequire) {
|
if(plugin.config.autoRequire) {
|
||||||
this.require(pluginId);
|
this.require(pluginId);
|
||||||
@@ -419,7 +422,7 @@ kit.config = kit.config || {};
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(plugin.stateInit.installing) {
|
if(plugin.stateInit.installing) {
|
||||||
//console.log('PluginManager.install: plugin ' + pluginId + ' уже устанавливается');
|
//console.warn(`PluginManager.install(${pluginId}): уже устанавливается (${plugin.state}).`);
|
||||||
this.__exec(pluginId, callback);
|
this.__exec(pluginId, callback);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -456,7 +459,7 @@ kit.config = kit.config || {};
|
|||||||
installed = true;
|
installed = true;
|
||||||
}
|
}
|
||||||
if(installed){
|
if(installed){
|
||||||
console.log('%cPluginManager.install: plugin ' + pluginId + ' установлен', "color: green;");
|
console.log(`%cPluginManager.install(${pluginId}): installed (${plugin.state} > ${stateList.installed}).`, "color: green;");
|
||||||
plugin.state = stateList.installed;
|
plugin.state = stateList.installed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user