This commit is contained in:
2023-11-22 20:29:38 +03:00
parent ac62e36fad
commit c847541f16
3 changed files with 19 additions and 6 deletions
+6 -3
View File
@@ -55,8 +55,6 @@ kit.config = kit.config || {};
}; };
/** /**
* @param pluginId
* @param {kitModuleTypeLoader|{}} config
* @return {boolean} * @return {boolean}
*/ */
__proto.register = function (pluginId, config = {}) { __proto.register = function (pluginId, config = {}) {
@@ -489,6 +487,9 @@ kit.config = kit.config || {};
return correct; return correct;
}; };
/**
* @memberOf kit
*/
__proto.exec = function (deps, callback, argArr = [], context = undefined) { __proto.exec = function (deps, callback, argArr = [], context = undefined) {
if(typeof deps === 'function') { if(typeof deps === 'function') {
@@ -573,7 +574,9 @@ kit.config = kit.config || {};
return !skipPromise?promise:undefined; return !skipPromise?promise:undefined;
}; };
/**
* @memberOf kit
*/
__proto.ready = function(deps, callback) { __proto.ready = function(deps, callback) {
if(typeof deps === 'function') { if(typeof deps === 'function') {
callback = deps; callback = deps;
+1 -1
View File
@@ -75,7 +75,7 @@ kit.PluginManager.register('modal', function(module, exports, require){
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
/** /**
* @class kitModal * @memberOf kit
*/ */
class Modal extends BaseComponent { class Modal extends BaseComponent {
constructor(element, config) { constructor(element, config) {
+12 -2
View File
@@ -475,7 +475,16 @@ __PluginManager__.register('support', function(module, exports, require, global)
return animations[t]; return animations[t];
} }
} }
}; }
function namespace(namespace, parent = window){
var parts=namespace.split(".");
for(var i=0;i<parts.length;i++){
if(typeof parent[parts[i]]==="undefined"){parent[parts[i]]={};}
parent=parent[parts[i]];
}
return parent;
}
/** /**
* @memberOf kit * @memberOf kit
@@ -518,7 +527,8 @@ __PluginManager__.register('support', function(module, exports, require, global)
setObjProp, setObjProp,
getObjProp, getObjProp,
whichAnimationEvent, whichAnimationEvent,
whichTransitionEvent whichTransitionEvent,
namespace
}; };
return module.exports = support; return module.exports = support;