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
@@ -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;
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user