mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -100,7 +100,7 @@ kit.PluginManager.registerPlugins({
|
||||
],
|
||||
deps: ['bsCore'],
|
||||
onRegister: function (plugin) {
|
||||
kit.PluginManager.install('collapse')
|
||||
//kit.PluginManager.install('collapse')
|
||||
},
|
||||
onInstall: function (plugin) {
|
||||
},
|
||||
@@ -114,7 +114,7 @@ kit.PluginManager.registerPlugins({
|
||||
],
|
||||
deps: ['jquery'],
|
||||
onRegister: function (plugin) {
|
||||
kit.PluginManager.install(plugin.id)
|
||||
//kit.PluginManager.install(plugin.id)
|
||||
},
|
||||
onInstall: function (plugin) {
|
||||
},
|
||||
@@ -122,23 +122,16 @@ kit.PluginManager.registerPlugins({
|
||||
|
||||
});
|
||||
|
||||
kit.exec([], function () {
|
||||
kit.config.debug && (function(){
|
||||
console.log('%ckit.reg', 'color:#2053ff');
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
console.log('%cDOMContentLoaded', 'color:#2053ff');
|
||||
});
|
||||
kit.exec(function () {
|
||||
console.log('%ckit.exec', 'color:#2053ff');
|
||||
});
|
||||
kit.ready(function () {
|
||||
console.log('%ckit.ready', 'color:#2053ff');
|
||||
});
|
||||
}());
|
||||
|
||||
function _init(){
|
||||
console.log('%ckit._init', 'color:#2053ff');
|
||||
kit.PluginManager.install('jquery');
|
||||
kit.PluginManager.install('toolkit');
|
||||
kit.PluginManager.install('tooltip');
|
||||
kit.PluginManager.install('bsCore');
|
||||
|
||||
}
|
||||
|
||||
if (/complete|interactive|loaded/.test(document.readyState)) {
|
||||
// In case the document has finished parsing, document's readyState will
|
||||
// be one of "complete", "interactive" or (non-standard) "loaded".
|
||||
_init();
|
||||
} else {
|
||||
// The document is not ready yet, so wait for the DOMContentLoaded event
|
||||
document.addEventListener("DOMContentLoaded", _init);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user