diff --git a/dist/ale.min.js b/dist/ale.min.js deleted file mode 100644 index 151ee90..0000000 --- a/dist/ale.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! Ale.js JavaScript Framework - * Version: 1.0.1 - * (c) 2018 Dong Yingxuan (Bill Dong) - * Released under the MIT License - */ -(function(D,h){var H="1.0.1",E=0,t=[],C=[],G=[],b=[],z=[],l=0,o=false,j=null,a={html:false,diff:true,async:true,configLock:false};D.Ale=function(M,L){if(typeof M!=="string"||!v(L)){if(!v(M)){throw"Ale.js: Wrong type of parameters was used when creating component objects!"}else{return new w(u(M))}}if(t[M]!==undefined){throw"Ale.js: This component has been created!"}t[M]=u(L)};Ale.render=function(M,L){var N=r(t[M]);return J(N,L)};Ale.config=function(M,N){if(a["configLock"]){throw"Ale.js: The configuration function is locked, no changes are allowed!"}if(v(M)){for(var L in M){a[L]=M[L]}}else{if(typeof M==="string"&&N!==undefined){a[M]=N}else{throw"Ale.js: The parameter type is wrong when calling the config function!"}}};Ale.isHasThisComponent=function(L){if(t[L]===undefined){return false}return true};Ale.use=function(L){if(typeof L.name!=="string"||typeof L.install!=="function"){throw"Ale.js: Some fields were not added when the plugin was registered!"}if(C[L.name]!==undefined){throw"Ale.js: This plugin has been registered!"}C[L.name]=L.name;L.install()};Ale.filter=function(L){if(typeof L!=="function"&&!Array.isArray(L)){throw"Ale.js: You need to pass in a function or array when adding a filter!"}if(typeof L==="function"){G.push(L)}else{if(Array.isArray(L)){G=G.concat(L)}}};Ale.nextTick=function(L){if(typeof L==="function"){j=L}else{throw"Ale.js: You need to pass in a function when adding a tick callback function!"}};Ale.plugin={};Ale.plugin.inject=function(L){if(typeof L!=="function"){throw"Ale: The wrong data type for plug-in injection!"}b.push(L)};Ale.version=H;function w(L){this.config=L;this.render=function(M){return J(r(this.config),M)}}function s(O,N){if(typeof N!=="undefined"){if(typeof N==="function"){if(!(O instanceof N)){throw"Ale.js: Incorrect component data type!"}}else{if(Array.isArray(N)){var M=false;for(var L=0;L","g");if(typeof P.template[L]==="function"){O=O.replace(N,i(P.template[L],M)())}else{O=O.replace(N,P.template[L]) -}}for(var L=0;L0){g(Q[N].childNodes,O[N].childNodes,R.childNodes[N])}else{if(O[N].childNodes.length>0){O[N].innerHTML=""}}}}}}function B(L){if(typeof L==="string"&&!a.html){L=L.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}return L}function x(M,N){for(var L in M){M[L]=i(M[L],N)}return M}function A(L,N){for(var M in L){L[M]=i(L[M],N)}return L}function c(N,M){for(var L in N){N[L]=i(N[L],M)}return N}function k(N,O,L){N.data=O;N.methods=L;if(N.children.length>0){for(var M=0;M1?N.apply(L,arguments):N.call(L,P):N.call(L)}M._length=N.length;return M}})(window,document);