mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
__PluginManager__.register("jQueryProxy",function(require,exports,module,global){var init=function(c,prop="$",args=[]){c.push([prop,args]);return new Proxy({},{get(target,prop){return function(){return init(c,prop,arguments)}}})};var J=function(){if(!J.init){J.init=true;__PluginManager__.ready("jQuery")}var c=[];J.queue.push(c);return init(c,"$",arguments)};J.queue=[];J.init=false;function JQueryProxy(){}JQueryProxy.prototype.J=J;JQueryProxy.prototype.hasJQuery=function(){return window.hasOwnProperty("jQuery")&&window.jQuery.hasOwnProperty("fn")};JQueryProxy.prototype.hasJQueryIniter=function(){return window.hasOwnProperty("jQuery")&&Object.is(window.jQuery,J)};JQueryProxy.prototype.onInstall=function(plugin){if(!this.hasJQuery()){(function(w){w.$=w.jQuery=J;plugin.module.initer=J})(window)}};JQueryProxy.prototype.onJQueryInstall=function(jQueryPlugin,jQueryProxyPlugin){var self=this;if(!jQueryProxyPlugin.module.initer){return}(function(w){var q=jQueryProxyPlugin.module.initer.queue;if(self.hasJQueryIniter()){w.$=w.jQuery=jQueryPlugin.module.exports;for(var ch of q){var root=w;for(var c of ch){try{root=root[c[0]].apply(root,c[1])}catch(e){console.warn(ch,e);break}}}}})(window)};module.exports=new JQueryProxy});
|
||||
__PluginManager__.register("jQueryProxy",function(r,n,e,t){function o(){o.init||(o.init=!0,__PluginManager__.ready("jQuery"));var r=[];return o.queue.push(r),u(r,"$",arguments)}var u=function(e,r="$",n=[]){return e.push([r,n]),new Proxy({},{get(r,n){return function(){return u(e,n,arguments)}}})};function i(){}o.queue=[],o.init=!1,i.prototype.J=o,i.prototype.hasJQuery=function(){return window.hasOwnProperty("jQuery")&&window.jQuery.hasOwnProperty("fn")},i.prototype.hasJQueryIniter=function(){return window.hasOwnProperty("jQuery")&&Object.is(window.jQuery,o)},i.prototype.onInstall=function(r){var n,e=this;this.hasJQuery()||((n=window).$=n.jQuery=o,e.initer=o)},i.prototype.onJQueryInstall=function(r,n){var e=this;if(e?.initer){var t=window,o=e.initer.queue;if(e.hasJQueryIniter()){t.$=t.jQuery=r.module.exports;for(var u of o){var i,a=t;for(i of u)try{a=a[i[0]].apply(a,i[1])}catch(r){console.warn(u,r);break}}}}},e.exports=new i}).install(function(){__PluginManager__.require("jQueryProxy").onInstall()});
|
||||
Reference in New Issue
Block a user