This commit is contained in:
2024-06-26 05:53:08 +03:00
parent 3228b3cb49
commit 16b59383ee
4 changed files with 37 additions and 22 deletions
+4
View File
@@ -824,12 +824,16 @@ kit.config = kit.config || {};
* @param {function} callback
* @memberOf kit
*/
PluginManager.prototype.ready = function(deps, callback = undefined) {
var self = this;
if(typeof deps === 'function') {
callback = deps;
deps = [];
}
if(typeof callback !== 'function') {
callback = function (){};
}
self.__ready(self.exec, [deps, callback], self);
};
PluginManager.prototype.__ready = function(fn, args = [], context = window) {