function(a,b) {"对象"= = typeof 模块 & &"对象"= = typeof module.exports?module.exports=a.document?b(a,!0):function(a) {if(!a.document) 抛出新的错误 ("阿瓦隆要求与文档窗口");返回 b(a)}:b(a)} ("未定义"! = typeof window?window:this,function(b,c) {功能春天 {avalon.config.debug & & console.log.apply(console,arguments)} 函数 e() {返回 Object.create(null)} 函数 f () {} 函数 g(a,b) {"字符串"= = typeof & & (a=a.match (某人) | |[]);为 (var c = {},d = void 0!==b?b:1,e=0,f=a.length;f > e; e + +) c [[e]] = d; 返回 c} 函数 h(){if(b.VBArray) {var a=document.documentMode;返回 a?a:b.XMLHttpRequest?7:6}return 0} 函数 i(a) {如果 (& &"对象"= = typeof) {var b=a.length,c=yb.call(a);如果 (/(Array|目录 |收藏 |地图 |Arguments)]$/.test(c)) 回报 ! 0; 如果 ("[对象]"= = = c & & b = = = b >>> 0) 返回 ! 0返回} ! 1} 函数 j(a,b) {如果 (& & a.childNodes)for (var c,d=a.childNodes,e=0;c=d[e++];)if(c.tagName) {var f=lb.createElementNS(Nb,c.tagName.toLowerCase());zb.forEach.call(c.attributes,function(a){f.setAttribute(a.name,a.value)}),j(c,f),b.appendChild(f)}} 函数 k(a) {为 (在 a)if(xb.call(a,b)) var b {var c = [b];"函数"= = typeof k.plugins[b]?k.plugins[b] (c):"对象"= = typeof k[b]?avalon.mix(k[b],c):k [b] = c} 返回这} 函数 l (a) {return(a+"").replace (Vb,"? $&")} 函数 m(a,b,c){if(Jb(b) | |b & & b.nodeType)return!1;if(-1!==c.indexOf(a)) 返回 ! 1;if(-1!==_b.indexOf(a)) 回报 ! 1; var d = c.$ 特别; 返回 & &"$"===a.charAt(0) & & ! d [a]? !1: ! 0} 函数 n(a,b,c,d){switch(a.type) {案例 0:var e=a.get,f=a.set;if(Jb(f)) {var g = d.$ 事件,h = g [b]; [b] g = [] 中,f.call (d,c),[b] g = h} 返回 e.call (d); 案例 1:return c; 案例 2:if(c!==d.$model[b]) {var i=a.svmodel=q(d,b,c,a.valueType);c = i.$ 模型; var j = 交流 [i.$ id]; j & & j()} 返回 c}} 函数 o(a,b,c){if(Array.isArray(a)) {var d=a.concat (); a.length=0;var g = r (a); 返回 g.pushArray (d) g} 如果 ("数"= = typeof a.nodeType)return; 如果 (a.$ id & & a.$ 事件) 返回;Array.isArray(a.$skipArray) | |(a.$ skipArray = []),a.$ skipArray.$special = b | |e (); var h = {}; c = c | |{}; var 我 = e (),j = e (),k = [];为 (var l a)!function(b,d){if(c[b]=d,m(b,d,a.$skipArray)) {[b] = []; var e=avalon.type(d),g=function(a) {var b = g._name,c = 这,d = c.$ 模型、 e = d [b] f = c.$ 事件;返回 arguments.length?void(rb||(1===g.type||(a=n(g,b,a,c),g.type))& &(bc(e,a)||(d [b] =,f.$ 消化? g.pedding||(g.pedding=!0,setTimeout(function() {(f [b]),p (c、 b、 d [b],e),g.pedding= ! 1})): ((f [b]),p (c、 b、 a、 e))): 0 = = = g.type?(a=g.get.call (c)、 e ! = = & & (d [b] =,f.$ 消化? g.pedding||(g.pedding=!0,setTimeout(function() {p c、 b、 d [b] (e),g.pedding= ! 1}))︰ p (c、 b、 a、 e)),): (v (f [b]),g.svmodel||e)};"对象"= = = e & & Jb(d.get) & & Object.keys (d).length < = 2?(g.set=d.set,g.get=d.get,g.type=0,k.push(function() {var a={evaluator:function(){a.type=Math.random(),a.element=null,c[b]=g.get.call(h)},元素︰ mb,type:Math.random (),处理程序︰ f,args: []};Bb[kb]=a,g.call (h),删除 Bb[kb]})):tb.test(e) 吗?(g.type=2,g.valueType=e,k.push(function() {var a=o(d,0,c[b]);g.svmodel=a,a.$events[ob]=i[b]})):g.type=1,g._name=b,j[b]=g}}(l,a[l]);_b.forEach(function(b) {删除 [b],删除 c [b]}),h=Object.defineProperties (h,cc (j)); (在 var q) j [q] | |(h [q] = [q]); h.$ id = Hb (),h.$ 模型 = c,h.$ 事件 = i;(l Zb) h [l] = Zb [l]; 返回 Object.defineProperty(h,"hasOwnProperty",{value:function(a) {返回在此。 $model},可写: ! 1,可枚举: ! 1,可配置: ! 0}),k.forEach (函数 (a) {()}),h} 函数 p(a,b,c,d) {a.$ 事件 & & Zb.$fire.call(a,b,c,d)} 函数 q(a,b,c,d) {var e = [b]; 如果 ("数组"= = = d) 返回 Array.isArray(c) & & e ! = = c? (e._.$unwatch(),e.clear(),e._.$watch(),e.pushArray(c.concat()),e): e;var f = a.$ 事件 [b],g = e.$ 事件。 $withProxyPool; g & & (gb (g,"与"),e.$ 事件。 $withProxyPool = null); var h=o(c);返回 h.$events[ob]=f,ac[h.$id]=function(a){for(;a=f.shift();)!function(a){avalon.nextTick(function() {a.type & & (a.rollback & & a.rollback(),Kb[a.type](a,a.vmodels))})} (a); 删除交流 [h.$ id]},h} 函数 (△) {var b=[];b.$id=Hb(),b.$model=a,b.$events={},b.$events[ob]=[],b._=o({length:a.length}),b._.$watch("length",function(a,c){b.$fire("length",a,c)(}); (var c 在 Zb) b [c] = Zb [c]; 返回 avalon.mix (b、 ec),b} 函数 s(a,b,c,d,e,f,g) {为 (var h=this.length,i=2;--i;){switch(a) {案例"添加": var j=this.$model.slice(b,b+c).map(function(a) {返回 tb.test(avalon.type(a))? a.$ id?: o (,0):}); dc.apply (这,[0,b].concat (j)),这._fire ("添加",b、 c); 休息; 案件"del": var k=this._splice(b,c);this._fire("del",b,c)} e & & (= e,b = 华氏,摄氏 = g,i = 2,e = 0)} 返回此._fire ("索引",d),this.length ! = = h & & (此。 _.length = 此.length),k} 函数 t(a,b) {为 (var c={},d=0,e=b.length;e > d; d + +) {c [d] = [d]; var f = b [d]; f c? ([d] = c [f] 删除 c [f]): [d] = [f]}} 函数 u(a) {Bb [kb] =a,avalon.openComputedCollect=!0;var b=a.evaluator;if (b) 试 {var c=fc.test(a.type)?a:b.apply(0,a.args);a.handler(c,a.element,a)}catch(b) {删除 a.evaluator;var d=a.element;if(3===d.nodeType) {var e=d.parentNode;k.commentInterpolate?e.replaceChild (lb.createComment (a.value),d):d.data = Qb +.value + Rb}} avalon.openComputedCollect=!1,delete Bb [kb]} 函数 v(a) {var b = Bb [kb]; & & b & & 阿瓦隆。Array.ensure(a,b) & & b.element & & w(b,a)} 函数 w(a,b) {a.$ uuid = a.$ uuid | |(Hb)、 b.$ uuid = b.$ uuid | |Hb()var
正在翻譯中..
![](//zhcntimg.ilovetranslation.com/pic/loading_3.gif?v=b9814dd30c1d7c59_8619)