Commit 77f0e099 authored by 杨博 (Yang Bo)'s avatar 杨博 (Yang Bo) Committed by Sam Saccone

Add learning bar for Binding.scala (#1664)

parent b8bd7bd2
......@@ -8,7 +8,7 @@ val indexHtml = taskKey[File]("Generate an index.html that follows TodoMVC's App
indexHtml := {
val linkedJs = (scalaJSLinkedFile in js in Compile).value.asInstanceOf[org.scalajs.core.tools.io.FileVirtualJSFile]
val document = <html>
val document = <html lang="en" data-framework="binding-scala">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
......
<!DOCTYPE html>
<html>
<html lang="en" data-framework="binding-scala">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
......
......@@ -54,8 +54,8 @@ function cf(a,b){(new P).d();a=Q();var d=(new df).h(!1),e=Ye(Ze(ef()));(new P).d
function jf(){(new P).d();var a=Q();(new P).d();var b=Q(),d=Ye(Ze(kf()));(new P).d();var e=Q(),f=lf(),e=(new R).h((new R).h(v(e,f,B(function(a){return(new T).n(Se(O(),a))})))),e=v(a,e,(new mf).De(b)),d=v(a,e,(new nf).Cg(b,d));return z(v(a,d,(new of).De(b)),(new pf).De(a))}function qf(a,b,d){(new P).d();a=Q();return rf(0,v(a,d,B(function(a){return!!a})),(new sf).De(a),tf(b,d))}
function lf(){Xe();(new P).d();var a=Q(),b=B(function(a){var b=a.currentTarget;a=a.keyCode|0;if(b instanceof g.HTMLInputElement&&13===a&&(a=b.value.trim(),""!==a)){var d=uf().Tb;vf(wf(d),xf(a,!1));b.value=""}}),d=Ye(Ze(yf()));return z(z(((new P).d(),Q(),(new R).h((new R).h((new T).n(N(O(),"\n "))))),zf(a,b)),(new Af).Cg(a,d))}
function Bf(){Xe();(new P).d();var a=Q(),b=Ye(Ze(kf()));return z(z(((new P).d(),Q(),(new R).h((new R).h((new T).n(N(O(),"\n "))))),(new Cf).De(a)),(new Df).Cg(a,b))}function ff(a,b,d){return B(function(a,b){return function(d){switch(d.keyCode|0){case 27:Ef(b,!0);Ef(uf().ri,Eb());break;case 13:return Ff(Xe(),a,b).g(d)}}}(b,d))}function Gf(){Xe();return B(function(){})}
function Ff(a,b,d){return B(function(a,b){return function(d){Ef(b,!0);Ef(uf().ri,Eb());d=d.currentTarget.value.trim();if(""===d){d=uf().Tb;d=wf(d);var k=uf().Tb,k=wf(k);return d.Ah(vb(k,a,0))}var k=uf().Tb,k=wf(k),w=uf().Tb,w=wf(w),w=vb(w,a,0);k.Nd(w,xf(d,a.Pd))}}(b,d))}Ve.prototype.main=function(a){var b=jf();a=Hf(a,b);If();hb(a)};Object.defineProperty(Ve.prototype,"todoapp",{get:function(){return jf()},enumerable:!0});Ve.prototype.b=q({us:0},!1,"com.thoughtworks.todo.Main$",{us:1,c:1});var Jf=void 0;
function Xe(){Jf||(Jf=(new Ve).d());return Jf}ba.com=ba.com||{};ba.com.thoughtworks=ba.com.thoughtworks||{};ba.com.thoughtworks.todo=ba.com.thoughtworks.todo||{};ba.com.thoughtworks.todo.Main=Xe;function Kf(){this.ap=this.En=this.ni=this.Vm=this.Pd=this.bi=this.Sk=this.ri=this.Tb=this.Lk=null}Kf.prototype=new r;Kf.prototype.constructor=Kf;
function Ff(a,b,d){return B(function(a,b){return function(d){Ef(b,!0);Ef(uf().ri,Eb());d=d.currentTarget.value.trim();if(""===d){d=uf().Tb;d=wf(d);var k=uf().Tb,k=wf(k);return d.Ah(vb(k,a,0))}var k=uf().Tb,k=wf(k),w=uf().Tb,w=wf(w),w=vb(w,a,0);k.Nd(w,xf(d,a.Pd))}}(b,d))}Ve.prototype.main=function(a){var b=jf();a=Hf(a,b);If();hb(a)};Ve.prototype.b=q({us:0},!1,"com.thoughtworks.todo.Main$",{us:1,c:1});var Jf=void 0;function Xe(){Jf||(Jf=(new Ve).d());return Jf}ba.com=ba.com||{};
ba.com.thoughtworks=ba.com.thoughtworks||{};ba.com.thoughtworks.todo=ba.com.thoughtworks.todo||{};ba.com.thoughtworks.todo.Main=Xe;function Kf(){this.ap=this.En=this.ni=this.Vm=this.Pd=this.bi=this.Sk=this.ri=this.Tb=this.Lk=null}Kf.prototype=new r;Kf.prototype.constructor=Kf;
Kf.prototype.d=function(){Lf=this;this.Lk="todos-binding.scala";var a=Mf(this);this.Tb=Nf(new Of,Pf(Qf().Rk,a));(new P).d();var a=Q(),b=(new Rf).cf(this.Tb);this.En=v(a,b,B(function(a){var b=uf(),f=Sf(),b=b.Lk;Tf();Tf();var h=Tf();Ne();var k;k=(new Uf).d();k.G||k.G||(k.Nn=(new Vf).Xl(Wf(),new Xf),k.G=!0);k=k.Nn;var w=Yf(h).$h,D=new Zf;if(null===h)throw x(y(),null);D.a=h;D.ur=k;h=$f(new ag,w,D);bg();a=cg(a,h);a=g.JSON.stringify(dg(0,a),null,0);f.Rj.setItem(b,a)}));this.En.Cd(If());a=Eb();this.ri=(new df).h(a);
this.Sk=eg(new fg,"All","#/",this.Tb);a=this.Tb;b=(new gg).d();this.bi=eg(new fg,"Active","#/active",Ae((new ze).ka(a,b),(new hg).d()));a=this.Tb;b=(new ig).d();this.Pd=eg(new fg,"Completed","#/completed",Ae((new ze).ka(a,b),(new jg).d()));this.Vm=Pf(kg(),(new A).F([this.Sk,this.bi,this.Pd]));a=lg(this);this.ni=(new df).h(a);(new P).d();a=Q();this.ap=v(a,this.ni,B(function(a){Qe(Pe()).location.hash=a.zg}));this.ap.Cd(If());Qe(Pe()).onhashchange=function(){Ef(uf().ni,lg(uf()))};return this};
function lg(a){a=a.Vm.kc(B(function(a){return a.zg===Qe(Pe()).location.hash}));return a.p()?uf().Sk:a.Ab()}function Mf(a){var b=Sf();a=a.Lk;b=mg(ng(),b.Rj.getItem(a)).Lh();a=(new og).d();var d=kg();return b.Wj(a,d.ha)}Kf.prototype.b=q({ax:0},!1,"com.thoughtworks.todo.Main$Models$",{ax:1,c:1});var Lf=void 0;function uf(){Lf||(Lf=(new Kf).d());return Lf}function Uf(){this.Nn=null;this.G=!1}Uf.prototype=new r;Uf.prototype.constructor=Uf;Uf.prototype.d=function(){return this};
......@@ -214,7 +214,7 @@ ip.prototype.b=q({nD:0},!1,"scala.scalajs.runtime.AnonFunction0",{nD:1,Pa:1,c:1,
kp.prototype.b=q({pD:0},!1,"scala.scalajs.runtime.AnonFunction2",{pD:1,rF:1,c:1,DD:1});function lp(){this.ga=0;this.fe=null}lp.prototype=new r;lp.prototype.constructor=lp;lp.prototype.d=function(){mp=this;this.fe=(new U).t(0,0);return this};function np(a,b,d){if(0===(-2097152&d))return""+(4294967296*d+ +(b>>>0));a=op(a,b,d,1E9,0,2);b=""+(a["2"]|0);return""+(4294967296*(a["1"]|0)+ +((a["0"]|0)>>>0))+"000000000".substring(b.length|0)+b}
function Tk(a,b,d,e,f){if(0===(e|f))throw(new Qn).m("/ by zero");if(d===b>>31){if(f===e>>31){if(-2147483648===b&&-1===e)return a.ga=0,-2147483648;var h=b/e|0;a.ga=h>>31;return h}return-2147483648===b&&-2147483648===e&&0===f?a.ga=-1:a.ga=0}if(h=0>d){var k=-b|0;d=0!==b?~d:-d|0}else k=b;if(b=0>f){var w=-e|0;e=0!==e?~f:-f|0}else w=e,e=f;k=Rn(a,k,d,w,e);if(h===b)return k;h=a.ga;a.ga=0!==k?~h:-h|0;return-k|0}
function Al(a,b,d){return 0>d?-(4294967296*+((0!==b?~d:-d|0)>>>0)+ +((-b|0)>>>0)):4294967296*d+ +(b>>>0)}function Rn(a,b,d,e,f){return 0===(-2097152&d)?0===(-2097152&f)?(d=(4294967296*d+ +(b>>>0))/(4294967296*f+ +(e>>>0)),a.ga=d/4294967296|0,d|0):a.ga=0:0===f&&0===(e&(-1+e|0))?(e=31-ea(e)|0,a.ga=d>>>e|0,b>>>e|0|d<<1<<(31-e|0)):0===e&&0===(f&(-1+f|0))?(b=31-ea(f)|0,a.ga=0,d>>>b|0):op(a,b,d,e,f,0)|0}
function op(a,b,d,e,f,h){var k=(0!==f?ea(f):32+ea(e)|0)-(0!==d?ea(d):32+ea(b)|0)|0,w=k,D=0===(32&w)?e<<w:0,S=0===(32&w)?(e>>>1|0)>>>(31-w|0)|0|f<<w:e<<w,w=b,Y=d;for(b=d=0;0<=k&&0!==(-2097152&Y);){var gb=w,Fc=Y,Mr=D,Ny=S;if(Fc===Ny?(-2147483648^gb)>=(-2147483648^Mr):(-2147483648^Fc)>=(-2147483648^Ny))gb=Y,Fc=S,Y=w-D|0,gb=(-2147483648^Y)>(-2147483648^w)?-1+(gb-Fc|0)|0:gb-Fc|0,w=Y,Y=gb,32>k?d|=1<<k:b|=1<<k;k=-1+k|0;gb=S>>>1|0;D=D>>>1|0|S<<31;S=gb}k=Y;if(k===f?(-2147483648^w)>=(-2147483648^e):(-2147483648^
function op(a,b,d,e,f,h){var k=(0!==f?ea(f):32+ea(e)|0)-(0!==d?ea(d):32+ea(b)|0)|0,w=k,D=0===(32&w)?e<<w:0,S=0===(32&w)?(e>>>1|0)>>>(31-w|0)|0|f<<w:e<<w,w=b,Y=d;for(b=d=0;0<=k&&0!==(-2097152&Y);){var gb=w,Fc=Y,Mr=D,My=S;if(Fc===My?(-2147483648^gb)>=(-2147483648^Mr):(-2147483648^Fc)>=(-2147483648^My))gb=Y,Fc=S,Y=w-D|0,gb=(-2147483648^Y)>(-2147483648^w)?-1+(gb-Fc|0)|0:gb-Fc|0,w=Y,Y=gb,32>k?d|=1<<k:b|=1<<k;k=-1+k|0;gb=S>>>1|0;D=D>>>1|0|S<<31;S=gb}k=Y;if(k===f?(-2147483648^w)>=(-2147483648^e):(-2147483648^
k)>=(-2147483648^f))k=4294967296*Y+ +(w>>>0),e=4294967296*f+ +(e>>>0),1!==h&&(S=k/e,f=S/4294967296|0,D=d,d=S=D+(S|0)|0,b=(-2147483648^S)<(-2147483648^D)?1+(b+f|0)|0:b+f|0),0!==h&&(e=k%e,w=e|0,Y=e/4294967296|0);return 0===h?(a.ga=b,d):1===h?(a.ga=Y,w):[d,b,w,Y]}
function Qo(a,b,d,e,f){if(0===(e|f))throw(new Qn).m("/ by zero");if(d===b>>31){if(f===e>>31){if(-1!==e){var h=b%e|0;a.ga=h>>31;return h}return a.ga=0}if(-2147483648===b&&-2147483648===e&&0===f)return a.ga=0;a.ga=d;return b}if(h=0>d){var k=-b|0;d=0!==b?~d:-d|0}else k=b;0>f?(b=-e|0,e=0!==e?~f:-f|0):(b=e,e=f);f=d;0===(-2097152&f)?0===(-2097152&e)?(k=(4294967296*f+ +(k>>>0))%(4294967296*e+ +(b>>>0)),a.ga=k/4294967296|0,k|=0):a.ga=f:0===e&&0===(b&(-1+b|0))?(a.ga=0,k&=-1+b|0):0===b&&0===(e&(-1+e|0))?a.ga=
f&(-1+e|0):k=op(a,k,f,b,e,1)|0;return h?(h=a.ga,a.ga=0!==k?~h:-h|0,-k|0):k}function Sk(a,b,d,e,f){a=65535&b;b=b>>>16|0;var h=65535&d;d=d>>>16|0;var k=65535&e;e=e>>>16|0;var w=65535&f;f=f>>>16|0;var D=(l(a,k)>>>16|0)+l(b,k)|0,D=(D>>>16|0)+(((65535&D)+l(a,e)|0)>>>16|0)|0,S=D>>>16|0,D=(65535&D)+l(h,k)|0,S=S+(D>>>16|0)|0,D=(65535&D)+l(b,e)|0,S=S+(D>>>16|0)|0,D=(65535&D)+l(a,w)|0,S=((((S+(D>>>16|0)|0)+l(d,k)|0)+l(h,e)|0)+l(b,w)|0)+l(a,f)|0;return 65535&D|S<<16}
......@@ -258,8 +258,8 @@ c.Xb=function(a,b,d){U.prototype.t.call(this,a|b<<22,b>>10|d<<12);return this};c
wq.prototype=new W;wq.prototype.constructor=wq;wq.prototype.g=function(a){return this.Uk(a)};wq.prototype.Uk=function(a){var b=Q(),d=rf,e=this.a.Jn.g(a),f=new xq;if(null===this)throw x(y(),null);f.a=this;f.fk=b;f.Dn=a;a=new yq;a.fk=b;return d(b,e,f,a)};function Be(a,b){var d=new wq;if(null===a)throw x(y(),null);d.a=a;d.So=b;return d}wq.prototype.b=q({Jr:0},!1,"com.thoughtworks.binding.Binding$BindingSeq$WithFilter$$anonfun$mapBinding$1",{Jr:1,l:1,c:1,i:1,f:1,e:1});
function xq(){this.Dn=this.fk=this.a=null}xq.prototype=new V;xq.prototype.constructor=xq;xq.prototype.Z=function(){var a=this.fk,b=this.a.So.g(this.Dn);return v(a,b,B(function(a){return(new T).n(Pg(Ne(),ja(u(t),[a])))}))};xq.prototype.sa=function(){return this.Z()};xq.prototype.b=q({Kr:0},!1,"com.thoughtworks.binding.Binding$BindingSeq$WithFilter$$anonfun$mapBinding$1$$anonfun$apply$19",{Kr:1,Pa:1,c:1,La:1,f:1,e:1});function yq(){this.fk=null}yq.prototype=new V;yq.prototype.constructor=yq;
yq.prototype.Z=function(){return(new R).h(Tl())};yq.prototype.sa=function(){return this.Z()};yq.prototype.b=q({Lr:0},!1,"com.thoughtworks.binding.Binding$BindingSeq$WithFilter$$anonfun$mapBinding$1$$anonfun$apply$20",{Lr:1,Pa:1,c:1,La:1,f:1,e:1});function zq(){}zq.prototype=new W;zq.prototype.constructor=zq;zq.prototype.g=function(a){return Aq(a)};function Aq(a){a=a.jd().o();return(new dc).Ee(a,B(function(a){return a}))}
zq.prototype.b=q({Wr:0},!1,"com.thoughtworks.binding.Binding$FlatProxy$$anonfun$iterator$2",{Wr:1,l:1,c:1,i:1,f:1,e:1});function sf(){}sf.prototype=new V;sf.prototype.constructor=sf;sf.prototype.De=function(){return this};sf.prototype.Z=function(){return(new R).h(Gf())};sf.prototype.sa=function(){return this.Z()};sf.prototype.b=q({vs:0},!1,"com.thoughtworks.todo.Main$$anonfun$com$thoughtworks$todo$Main$$blureHandler$1$1",{vs:1,Pa:1,c:1,La:1,f:1,e:1});function Bq(){this.sj=this.bd=null}
Bq.prototype=new V;Bq.prototype.constructor=Bq;Bq.prototype.Z=function(){return(new R).h(Ff(Xe(),this.bd,this.sj))};function tf(a,b){var d=new Bq;d.bd=a;d.sj=b;return d}Bq.prototype.sa=function(){return this.Z()};Bq.prototype.b=q({ws:0},!1,"com.thoughtworks.todo.Main$$anonfun$com$thoughtworks$todo$Main$$blureHandler$1$2",{ws:1,Pa:1,c:1,La:1,f:1,e:1});function Cq(){}Cq.prototype=new W;Cq.prototype.constructor=Cq;Cq.prototype.d=function(){return this};Cq.prototype.g=function(){return Dq()};
zq.prototype.b=q({Wr:0},!1,"com.thoughtworks.binding.Binding$FlatProxy$$anonfun$iterator$2",{Wr:1,l:1,c:1,i:1,f:1,e:1});function sf(){}sf.prototype=new V;sf.prototype.constructor=sf;sf.prototype.De=function(){return this};sf.prototype.Z=function(){return(new R).h(Gf())};sf.prototype.sa=function(){return this.Z()};sf.prototype.b=q({vs:0},!1,"com.thoughtworks.todo.Main$$anonfun$com$thoughtworks$todo$Main$$blurHandler$1$1",{vs:1,Pa:1,c:1,La:1,f:1,e:1});function Bq(){this.sj=this.bd=null}
Bq.prototype=new V;Bq.prototype.constructor=Bq;Bq.prototype.Z=function(){return(new R).h(Ff(Xe(),this.bd,this.sj))};function tf(a,b){var d=new Bq;d.bd=a;d.sj=b;return d}Bq.prototype.sa=function(){return this.Z()};Bq.prototype.b=q({ws:0},!1,"com.thoughtworks.todo.Main$$anonfun$com$thoughtworks$todo$Main$$blurHandler$1$2",{ws:1,Pa:1,c:1,La:1,f:1,e:1});function Cq(){}Cq.prototype=new W;Cq.prototype.constructor=Cq;Cq.prototype.d=function(){return this};Cq.prototype.g=function(){return Dq()};
function Dq(){var a=uf().Tb,a=wf(a),b=uf().Tb,b=wf(b);un();b=(new Hm).yf(b,B(function(a){return a.Pd}));un();var d=B(function(a){return a}),e=Eq(),b=b.mc(d,e.ha);return Ld(a,b)}Cq.prototype.b=q({xs:0},!1,"com.thoughtworks.todo.Main$$anonfun$com$thoughtworks$todo$Main$$clearCompletedClickHandler$1$1",{xs:1,l:1,c:1,i:1,f:1,e:1});function Fq(){}Fq.prototype=new W;Fq.prototype.constructor=Fq;Fq.prototype.d=function(){return this};Fq.prototype.g=function(a){Gq(a)};
function Gq(a){var b=uf().Tb,b=wf(b),d=Eq().ha,b=Xb(b,d);un();b=b.Bd(B(function(a){return null!==a}));un();b.B(B(function(a){return function(b){if(null!==b){var d=b.$a;b=b.cb|0;if(d.Pd!==!!a.currentTarget.checked){var k=uf().Tb;wf(k).Nd(b,xf(d.Sg,!!a.currentTarget.checked))}}else throw(new H).h(b);}}(a)))}Fq.prototype.b=q({ys:0},!1,"com.thoughtworks.todo.Main$$anonfun$com$thoughtworks$todo$Main$$toggleAllClickHandler$1$1",{ys:1,l:1,c:1,i:1,f:1,e:1});function af(){this.Qc=null}af.prototype=new W;
af.prototype.constructor=af;af.prototype.g=function(a){return this.k(a)};af.prototype.De=function(a){this.Qc=a;return this};
......@@ -703,8 +703,8 @@ function Kg(a,b,d,e,f){a.Ne=b;a.Vf=d;a.Nh=e;a.Jg=f;return a}c.fa=function(){var
function Ye(a){var b=g.document.createElementNS(a.Jg.Xm(),a.Ne),d=a.Vf;a=a.Vf;a=m(u(Fy),[wc(a)]);for(var e=0;;){var f=d,h=I();if(null!==f&&f.ea(h))break;else a.j[e]=d.I(),d=d.w(),e=1+e|0}for(d=a.j.length;0<d;)for(d=-1+d|0,e=a.j[d],f=0;f<e.s();)h=e.J(f),b.appendChild(Ye(h)),f=1+f|0;return b}c.b=q({pn:0},!1,"scalatags.JsDom$TypedTag",{pn:1,c:1,RD:1,MD:1,OD:1,TD:1,ob:1,u:1,f:1,e:1});function Gy(){this.pc=null}Gy.prototype=new my;Gy.prototype.constructor=Gy;
Gy.prototype.d=function(){this.pc="Boolean";return this};Gy.prototype.Cc=function(a){return m(u(Qa),[a])};Gy.prototype.Zb=function(){return n(Qa)};Gy.prototype.b=q({Zz:0},!1,"scala.reflect.ManifestFactory$BooleanManifest$",{Zz:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Hy=void 0;function Rj(){Hy||(Hy=(new Gy).d());return Hy}function Iy(){this.pc=null}Iy.prototype=new my;Iy.prototype.constructor=Iy;Iy.prototype.d=function(){this.pc="Byte";return this};
Iy.prototype.Cc=function(a){return m(u(Sa),[a])};Iy.prototype.Zb=function(){return n(Sa)};Iy.prototype.b=q({$z:0},!1,"scala.reflect.ManifestFactory$ByteManifest$",{$z:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Jy=void 0;function Kj(){Jy||(Jy=(new Iy).d());return Jy}function Ky(){this.pc=null}Ky.prototype=new my;Ky.prototype.constructor=Ky;Ky.prototype.d=function(){this.pc="Char";return this};Ky.prototype.Cc=function(a){return m(u(Ra),[a])};Ky.prototype.Zb=function(){return n(Ra)};
Ky.prototype.b=q({aA:0},!1,"scala.reflect.ManifestFactory$CharManifest$",{aA:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Ly=void 0;function Mj(){Ly||(Ly=(new Ky).d());return Ly}function My(){this.pc=null}My.prototype=new my;My.prototype.constructor=My;My.prototype.d=function(){this.pc="Double";return this};My.prototype.Cc=function(a){return m(u(Xa),[a])};My.prototype.Zb=function(){return n(Xa)};
My.prototype.b=q({bA:0},!1,"scala.reflect.ManifestFactory$DoubleManifest$",{bA:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Oy=void 0;function Qj(){Oy||(Oy=(new My).d());return Oy}function Py(){this.pc=null}Py.prototype=new my;Py.prototype.constructor=Py;Py.prototype.d=function(){this.pc="Float";return this};Py.prototype.Cc=function(a){return m(u(Wa),[a])};Py.prototype.Zb=function(){return n(Wa)};
Ky.prototype.b=q({aA:0},!1,"scala.reflect.ManifestFactory$CharManifest$",{aA:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Ly=void 0;function Mj(){Ly||(Ly=(new Ky).d());return Ly}function Ny(){this.pc=null}Ny.prototype=new my;Ny.prototype.constructor=Ny;Ny.prototype.d=function(){this.pc="Double";return this};Ny.prototype.Cc=function(a){return m(u(Xa),[a])};Ny.prototype.Zb=function(){return n(Xa)};
Ny.prototype.b=q({bA:0},!1,"scala.reflect.ManifestFactory$DoubleManifest$",{bA:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Oy=void 0;function Qj(){Oy||(Oy=(new Ny).d());return Oy}function Py(){this.pc=null}Py.prototype=new my;Py.prototype.constructor=Py;Py.prototype.d=function(){this.pc="Float";return this};Py.prototype.Cc=function(a){return m(u(Wa),[a])};Py.prototype.Zb=function(){return n(Wa)};
Py.prototype.b=q({cA:0},!1,"scala.reflect.ManifestFactory$FloatManifest$",{cA:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Qy=void 0;function Pj(){Qy||(Qy=(new Py).d());return Qy}function Ry(){this.pc=null}Ry.prototype=new my;Ry.prototype.constructor=Ry;Ry.prototype.d=function(){this.pc="Int";return this};Ry.prototype.Cc=function(a){return m(u(Ua),[a])};Ry.prototype.Zb=function(){return n(Ua)};
Ry.prototype.b=q({dA:0},!1,"scala.reflect.ManifestFactory$IntManifest$",{dA:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Sy=void 0;function Nj(){Sy||(Sy=(new Ry).d());return Sy}function Ty(){this.pc=null}Ty.prototype=new my;Ty.prototype.constructor=Ty;Ty.prototype.d=function(){this.pc="Long";return this};Ty.prototype.Cc=function(a){return m(u(Va),[a])};Ty.prototype.Zb=function(){return n(Va)};
Ty.prototype.b=q({eA:0},!1,"scala.reflect.ManifestFactory$LongManifest$",{eA:1,cg:1,c:1,be:1,Sc:1,Hd:1,od:1,f:1,e:1,u:1});var Uy=void 0;function Oj(){Uy||(Uy=(new Ty).d());return Uy}function Vy(){this.Pe=null}Vy.prototype=new oy;Vy.prototype.constructor=Vy;function Wy(){}Wy.prototype=Vy.prototype;Vy.prototype.ea=function(a){return this===a};Vy.prototype.z=function(){return this.Pe};Vy.prototype.fa=function(){return Da(this)};function Xy(){this.pc=null}Xy.prototype=new my;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -88,8 +88,8 @@ import upickle.default.{read, write}
}
}
def ignoreEvent = { _: Event => }
@dom def blureHandler: Binding[Event => Any] = if (suppressOnBlur.bind) ignoreEvent else submit
val edit = <input class="edit" value={ todo.title } onblur={ blureHandler.bind } onkeydown={ keyDownHandler } />
@dom def blurHandler: Binding[Event => Any] = if (suppressOnBlur.bind) ignoreEvent else submit
val edit = <input class="edit" value={ todo.title } onblur={ blurHandler.bind } onkeydown={ keyDownHandler } />
def toggleHandler = { event: Event =>
allTodos.get(allTodos.get.indexOf(todo)) = Todo(todo.title, event.currentTarget.asInstanceOf[HTMLInputElement].checked)
}
......@@ -140,7 +140,7 @@ import upickle.default.{read, write}
</footer>
}
@JSExport @dom def todoapp: Binding[BindingSeq[Node]] = {
@dom def todoapp: Binding[BindingSeq[Node]] = {
<section class="todoapp">{ header.bind }{ mainSection.bind }{ footer.bind }</section>
<footer class="info">
<p>Double-click to edit a todo</p>
......
......@@ -361,6 +361,7 @@
<li><a href="examples/atmajs/">Atma.js</a></li>
<li><a href="examples/exoskeleton/">Exoskeleton</a></li>
<li><a href="examples/componentjs/">ComponentJS</a></li>
<li><a href="examples/binding-scala/">Binding.scala</a></li>
</ul>
</li>
<li>Updates have been made to apps including Vanilla, Angular, React, Backbone, Ember, jQuery &amp; many more.</li>
......
......@@ -1912,6 +1912,36 @@
}]
}]
},
"binding-scala": {
"name": "Binding.scala",
"description": "Binding.scala is a Reactive Web Frameworks that helps you create complicated interactive web pages with very simple code base. <br/>This Binding.scala's TodoMVC application has the least code size among all the TodoMVC implementations, only one source file, 154 lines of code!",
"homepage:": "github.com/ThoughtWorksInc/Binding.scala",
"examples": [{
"name": "This TodoMVC application",
"url": "examples/binding-scala",
"source_url": "https://github.com/ThoughtWorksInc/todo"
}, {
"name": "Other live DEMOs",
"url": "https://thoughtworksinc.github.io/Binding.scala/",
"source_url": "https://github.com/ThoughtWorksInc/Binding.scala-website"
}],
"link_groups": [{
"heading": "Official Resources",
"links": [{
"name": "Project Page",
"url": "https://github.com/ThoughtWorksInc/Binding.scala"
}, {
"name": "API documentation",
"url": "https://oss.sonatype.org/service/local/repositories/releases/archive/com/thoughtworks/binding/unidoc_2.11/7.0.3/unidoc_2.11-7.0.3-javadoc.jar/!/com/thoughtworks/binding/package.html"
}]
}, {
"heading": "Community",
"links": [{
"name": "Binding.scala on Gitter",
"url": "https://gitter.im/ThoughtWorksInc/Binding.scala"
}]
}]
},
"serenadejs": {
"name": "Serenade.js",
"description": "Serenade.js is a client side framework built on the MVC pattern. It makes it simple to create rich client side applications by freeing you from having to keep the DOM up to date with your data through powerful data bindings.",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment