Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some jQuery bugs: loop on roots, return them after render for cha…

…ining
  • Loading branch information...
commit 74fbae0397426ad85f34f574aa34bc39552aef08 1 parent 15fe9dc
Mic when working on PURE authored
Showing with 13 additions and 13 deletions.
  1. +11 −11 libs/pure.js
  2. +2 −2 libs/pure_packed.js
22 libs/pure.js
View
@@ -7,7 +7,7 @@
Copyright (c) 2010 Michael Cvilic - BeeBole.com
Thanks to Rog Peppe for the functional JS jump
- revision: 2.54
+ revision: 2.55
*/
var $p, pure = $p = function(){
@@ -37,7 +37,7 @@ $p.core = function(sel, ctxt, plugins){
error('The root of the template is undefined, check your selector');
break;
default:
- templates = [sel];
+ templates = sel;
}
for(var i = 0, ii = templates.length; i < ii; i++){
@@ -595,9 +595,9 @@ $p.core = function(sel, ctxt, plugins){
// return an HTML string
// should replace the template and return this
function render(ctxt, directive){
- var fn = typeof directive === 'function' ? directive : plugins.compile( directive, false, this[0] );
- for(var i = 0, ii = this.length; i < ii; i++){
- this[i] = replaceWith( this[i], fn( ctxt, false ));
+ var fn = typeof directive === 'function' && directive, i = 0, ii = this.length;
+ for(; i < ii; i++){
+ this[i] = replaceWith( this[i], (fn || plugins.compile( directive, false, this[i] ))( ctxt, false ));
}
context = null;
return this;
@@ -669,9 +669,9 @@ $p.libs = {
}
DOMAssistant.attach({
publicMethods : [ 'compile', 'render', 'autoRender'],
- compile:function(directive, ctxt){ return $p(this).compile(directive, ctxt); },
- render:function(ctxt, directive){ return $( $p(this).render(ctxt, directive) )[0]; },
- autoRender:function(ctxt, directive){ return $( $p(this).autoRender(ctxt, directive) )[0]; }
+ compile:function(directive, ctxt){ return $p([this]).compile(directive, ctxt); },
+ render:function(ctxt, directive){ return $( $p([this]).render(ctxt, directive) )[0]; },
+ autoRender:function(ctxt, directive){ return $( $p([this]).autoRender(ctxt, directive) )[0]; }
});
},
jquery:function(){
@@ -682,9 +682,9 @@ $p.libs = {
}
jQuery.fn.extend({
directives:function(directive){this._pure_d = directive; return this;},
- compile:function(directive, ctxt){ return $p(this[0]).compile(this._pure_d || directive, ctxt); },
- render:function(ctxt, directive){ return jQuery( $p( this[0] ).render( ctxt, this._pure_d || directive ) ); },
- autoRender:function(ctxt, directive){ return jQuery( $p( this[0] ).autoRender( ctxt, this._pure_d || directive ) ); }
+ compile:function(directive, ctxt){ return $p(this).compile(this._pure_d || directive, ctxt); },
+ render:function(ctxt, directive){ return jQuery( $p( this ).render( ctxt, this._pure_d || directive ) ); },
+ autoRender:function(ctxt, directive){ return jQuery( $p( this ).autoRender( ctxt, this._pure_d || directive ) ); }
});
},
mootools:function(){
4 libs/pure_packed.js
View
@@ -7,6 +7,6 @@
Copyright (c) 2010 Michael Cvilic - BeeBole.com
Thanks to Rog Peppe for the functional JS jump
- revision: 2.53
+ revision: 2.55
*/
-eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 $p,2G=$p=6(){9 a=2Q[0],2t=J;7(y a===\'16\'){2t=2Q[1]||J}8 $p.2U(a,2t)};$p.2U=6(q,r,t){9 t=2W(),1q=[];2X(y q){15\'16\':1q=t.K(r||F,q);7(1q.x===0){G(\'2i 2n "\'+q+\'" 2Y 2g 2Z\')}18;15\'A\':G(\'2i 2n 30 2p A, 4s 2y V\');18;4r:1q=[q]}E(9 i=0,N=1q.x;i<N;i++){t[i]=1q[i]}t.x=N;9 u=\'4q\'+21.31(21.32()*34)+\'2z\',2A=\'4i\'+21.31(21.32()*34)+\'2z\',2E=/^(\\+)?([^\\@\\+]+)?\\@?([^\\+]+)?(\\+)?$/,36={4e:\'4d\',48:\'3e\'},1m=2j.1m?6(o){8 2j.1m(o)}:6(o){8 46.T.45.1V(o)==="[44 2j]"};8 t;6 G(e){7(y 3f!==\'A\'){3f.42(e);41}3Y(\'2G G: \'+e);}6 2W(){9 a=$p.X,f=6(){};f.T=a;f.T.I=a.I||I;f.T.Q=a.Q||Q;f.T.P=a.P||P;f.T.K=a.K||K;f.T.3X=1C;f.T.3K=G;8 3i f()}6 1T(a){8 a.1T||3i 3I().3H(a)}6 1t(b,f){8 6(a){8 b(\'\'+f.1V(a.1b,a))}}6 K(n,a){7(y n===\'16\'){a=n;n=J}7(y F.3j!==\'A\'){8(n||F).3j(a)}C{G(\'3E 3D 19 3k 3x 2b: 3u, 3t.5+, 3s+ 3r 3q+\\n\\3p 4U 3k 2k 2y 3v, 3w 3y a 3G 3J/3L 2b a 3Z V 47\')}}6 2v(c,d){8 6(a){9 b=[c[0]],n=c.x,1N,1x,1M,Y;E(9 i=1;i<n;i++){1N=d[i](a);1x=c[i];7(1N===\'\'){1M=b[b.x-1];7((Y=1M.49(/[^\\s]+=\\"?$/))>-1){b[b.x-1]=1M.24(0,Y);1x=1x.4j(1)}}b[b.x]=1N;b[b.x]=1x}8 b.26(\'\')}}6 33(p){9 m=p.1D(/^(\\w+)\\s*<-\\s*(\\S+)?$/);7(m===1n){G(\'2c 1d 4t: "\'+p+\'"\')}7(m[1]===\'13\'){G(\'"13<-..." 2p a 4w 4x E 1L 4A 4F 4H.\\n\\4L 51 52 2o E 2y 1d.\')}7(!m[2]||(m[2]&&(/1b/i).19(m[2]))){m[2]=6(a){8 a.1b}}8{2o:m[1],14:m[2]}}6 17(c){7(y(c)===\'6\'){8 c}9 m=c.1D(/^[a-53-Z\\$2z\\@][\\w\\$:-]*(\\.[\\w\\$:-]*[^\\.])*$/);7(m===1n){9 d=J,s=c,1U=[],1k=[],i=0,2w;7(/\\\'|\\"/.19(s.2J(0))){7(/\\\'|\\"/.19(s.2J(s.x-1))){2w=s.24(1,s.x-1);8 6(){8 2w}}}C{1G((m=s.1D(/#\\{([^{}]+)\\}/))!==1n){d=1c;1U[i++]=s.2F(0,m.2H);1k[i]=17(m[1]);s=s.2F(m.2H+m[0].x,s.x)}}7(!d){G(\'2c 56 V 2I: \'+c)}1U[i]=s;8 2v(1U,1k)}m=c.1K(\'.\');8 6(a){9 b=a.1b||a,v=a[m[0]],i=0;7(v&&v.13){i+=1;7(m[i]===\'Y\'){8 v.Y}C{b=v.13}}9 n=m.x;E(;i<n;i++){7(!b){18}b=b[m[i]]}8(!b&&b!==0)?\'\':b}}6 1w(c,d,e){9 f,R,V,D,O,L=[];7(y d===\'16\'){f=d;9 m=d.1D(2E);7(!m){G(\'2c V 2I: \'+d)}R=m[1];V=m[2];D=m[3];O=m[4];7(V===\'.\'||(!V&&D)){L[0]=c}C{L=t.K(c,V)}7(!L||L.x===0){8 G(\'2i 1B "\'+d+\'" 2Y 2g 2Z 1f 1L 2n:\'+1T(c))}}C{R=d.R;D=d.D;O=d.O;L=[c]}7(R||O){7(R&&O){G(\'O/R 2l 50 4W 3o 1L 4R 4Q\')}C 7(e){G(\'4N O/R/1e 4J 4I E 1d L\')}C 7(O&&e){G(\'2l O 2b 1d (14: \'+f+\')\')}}9 g,1h,W,1J,1H,1E,11;7(D){1J=(/^25$/i).19(D);1H=(/^4k$/i).19(D);1E=1H?\'1j\':D;g=6(a,s){a.4g(2A+D,s);7(1E 1f a&&!1J){a[1E]=\'\'}7(a.37===1){a.38(D);1H&&a.38(1E)}};7(1J||1H){7(1J){1h=6(n){8 n.25.4f}}C{1h=6(n){8 n.1j}}W=6(s){8 s.1e(/\\"/g,\'&3a;\')}}C{1h=6(n){8 n.4c(D)};W=6(s){8 s.1e(/\\"/g,\'&3a;\').1e(/\\s/g,\'&4a;\')}}7(R){11=6(a,s){g(a,s+1h(a))}}C 7(O){11=6(a,s){g(a,1h(a)+s)}}C{11=6(a,s){g(a,s)}}}C{7(e){11=6(a,s){9 b=a.3d;7(b){b.2u(F.1O(s),a.43);b.1P(a)}}}C{7(R){11=6(a,s){a.2u(F.1O(s),a.1s)}}C 7(O){11=6(a,s){a.2q(F.1O(s))}}C{11=6(a,s){1G(a.1s){a.1P(a.1s)}a.2q(F.1O(s))}}}W=6(s){8 s}}8{D:D,M:L,3l:11,14:f,W:W}}6 1I(a,n){9 b=u+n+\':\';E(9 i=0;i<a.M.x;i++){a.3l(a.M[i],b)}}6 2m(j,k,l,m,n){8 6(g){9 a=k(g),2h=g[j],1Q={1R:a},2e=0,x,2d=[],2a=6(b,c,d,e){9 f=g.Y,3n=g.13,3m=g.1R;g.Y=c.Y=b;g.13=c.13=a[b];g.1R=a;y e!==\'A\'&&(g.x=e);7(y d===\'6\'&&d.1V(g.13,g)===J){2e++;8}2d.29(l.1V(c,g));g.Y=f;g.13=3n;g.1R=3m};g[j]=1Q;7(1m(a)){x=a.x||0;7(y m===\'6\'){a.1S(m)}E(9 i=0,N=x;i<N;i++){2a(i,1Q,n,x-2e)}}C{7(a&&y m!==\'A\'){G(\'1S 2p 3z 3A 2k 3B, 2g 3C\')}E(9 h 1f a){a.2C(h)&&2a(h,1Q,n)}}y 2h!==\'A\'?g[j]=2h:3F g[j];8 2d.26(\'\')}}6 2x(a,b,c,d){9 e=J,1g,2r,1z,H;E(H 1f c){7(c.2C(H)){7(H===\'1S\'){2r=c.1S;3h}C 7(H===\'1z\'){1z=c.1z;3h}7(e){G(\'2l 3M 3N 3O 3P 1d 2k a L\')}1g=H;e=1c}}7(!1g){G(\'3Q 1f 1L V: \'+b+\'\\3R 3S 3T 3U 3V a 16, a 6 3W a 1d(<-)\')}9 f=c[1g];7(y(f)===\'16\'||y(f)===\'6\'){c={};c[1g]={30:f};8 2x(a,b,c,d)}9 g=33(1g),1v=17(g.14),L=1w(a,b,1c),M=L.M;E(i=0;i<M.x;i++){9 h=M[i],1u=1C(h,f);d[d.x]=1t(L.W,2m(g.2o,1v,1u,2r,1z));L.M=[h];1I(L,d.x-1)}}6 3g(n,d){9 e=n.40(\'*\'),2D=[],1i={a:[],l:{}},z,1W,i,N,j,1l,12,1X,2f;E(i=-1,N=e.x;i<N;i++){12=i>-1?e[i]:n;7(12.37===1&&12.1j!==\'\'){1X=12.1j.1K(\' \');E(j=0,1l=1X.x;j<1l;j++){2f=1X[j];z=3c(2f,12.3b);7(z!==J){1W=(/4b/i).19(z.D);7(z.14.39(\'@\')>-1||1W){12.1j=12.1j.1e(\'@\'+z.D,\'\');7(1W){z.D=J}}2D.29({n:12,z:z})}}}}8 2D;6 3c(c,a){9 b=c.1D(2E),D=b[3]||36[a],z={R:!!b[1],H:b[2],D:D,O:!!b[4],14:c},i,N,1Y,1Z,U;E(i=1i.a.x-1;i>=0;i--){1Y=1i.a[i];1Z=1Y.l[0];U=1Z&&1Z[z.H];7(y U!==\'A\'){z.H=1Y.p+\'.\'+z.H;7(1i.l[z.H]===1c){U=U[0]}18}}7(y U===\'A\'){U=17(z.H)(1m(d)?d[0]:d);7(U===\'\'){8 J}}7(1m(U)){1i.a.29({l:U,p:z.H});1i.l[z.H]=1c;z.t=\'1d\'}C{z.t=\'35\'}8 z}}6 1C(a,b,c,d){9 e=[];d=d||c&&3g(a,c);7(c){9 j,1l,z,n,f,M,1v,1B,1u;1G(d.x>0){z=d[0].z;n=d[0].n;d.4h(0,1);7(z.t===\'35\'){f=1w(n,z,J);1I(f,e.x);e[e.x]=1t(f.W,17(z.H))}C{1v=17(z.14);f=1w(n,z,1c);M=f.M;E(j=0,1l=M.x;j<1l;j++){1B=M[j];1u=1C(1B,J,c,d);e[e.x]=1t(f.W,2m(z.14,1v,1u));f.M=[1B];1I(f,e.x-1)}}}}9 f,1o,20,2s,i;E(9 g 1f b){7(b.2C(g)){i=0;1o=b[g];7(y(1o)===\'6\'||y(1o)===\'16\'){20=g.1K(/\\s*,\\s*/);2s=20.x;4l{g=20[i];f=1w(a,g,J);1I(f,e.x);e[e.x]=1t(f.W,17(1o))}1G(++i<2s)}C{2x(a,g,1o,e)}}}9 h=1T(a),1k=[];h=h.1e(/<([^>]+)\\s(3e\\=""|4m)\\s?([^>]*)>/4n,"<$1 $3>");h=h.1K(2A).26(\'\');9 k=h.1K(u),p;E(9 i=1;i<k.x;i++){p=k[i];1k[i]=e[4o(p,10)];k[i]=p.24(p.39(\':\')+1)}8 2v(k,1k)}6 I(b,c,d){9 e=1C((d||B[0]).4p(1c),b,c);8 6(a){8 e({1b:a})}}6 Q(a,b){9 c=y b===\'6\'?b:t.I(b,J,B[0]);E(9 i=0,N=B.x;i<N;i++){B[i]=27(B[i],c(a,J))}1b=1n;8 B}6 P(a,b){9 c=t.I(b,a,B[0]);E(9 i=0,N=B.x;i<N;i++){B[i]=27(B[i],c(a,J))}1b=1n;8 B}6 27(a,b){9 c,22=a.3d,1y=0;2X(a.3b){15\'1F\':15\'4u\':15\'4v\':b=\'<1p>\'+b+\'</1p>\';1y=1;18;15\'28\':b=\'<1p><1F>\'+b+\'</1F></1p>\';1y=2;18;15\'4y\':15\'4z\':b=\'<1p><1F><28>\'+b+\'</28></1F></1p>\';1y=3;18}1r=F.4B(\'4C\');1r.25.4D=\'4E\';F.2B.2q(1r);1r.4G=b;c=1r.1s;1G(1y--){c=c.1s}22.2u(c,a);22.1P(a);F.2B.1P(1r);a=c;c=22=1n;8 a}};$p.X={};$p.2V={23:6(){7(y F.1a===\'A\'){$p.X.K=6(n,a){8 23.4K(a,n)}}},2T:6(){7(y F.1a===\'A\'){$p.X.K=6(n,a){8 $(n).4M(a)}}2S.4O({4P:[\'I\',\'Q\',\'P\'],I:6(a,b){8 $p(B).I(a,b)},Q:6(a,b){8 $($p(B).Q(a,b))[0]},P:6(a,b){8 $($p(B).P(a,b))[0]}})},2R:6(){7(y F.1a===\'A\'){$p.X.K=6(n,a){8 1A(n).K(a)}}1A.4S.4T({I:6(a,b){8 $p(B[0]).I(a,b)},Q:6(a,b){8 1A($p(B[0]).Q(a,b))},P:6(a,b){8 1A($p(B[0]).P(a,b))}})},2P:6(){7(y F.1a===\'A\'){$p.X.K=6(n,a){8 $(n).4V(a)}}2O.4X({I:6(a,b){8 $p(B).I(a,b)},Q:6(a,b){8 $p(B).Q(a,b)},P:6(a,b){8 $p(B).P(a,b)}})},T:6(){7(y F.1a===\'A\'){$p.X.K=6(n,a){n=n===F?n.2B:n;8 y n===\'16\'?$$(n):$(n).4Y(a)}}2O.4Z({I:6(a,b,c){8 $p(a).I(b,c)},Q:6(a,b,c){8 $p(a).Q(b,c)},P:6(a,b,c){8 $p(a).P(b,c)}})},2N:6(){7(y F.1a===\'A\'){$p.X.K=6(n,a){8 2M(a,n)}}},2L:6(){7(y F.1a===\'A\'){$p.X.K=6(n,a){8 2K(a,n)}}}};(6(){9 a=y 23!==\'A\'&&\'23\'||y 2S!==\'A\'&&\'2T\'||y 1A!==\'A\'&&\'2R\'||y 54!==\'A\'&&\'2P\'||y 55!==\'A\'&&\'T\'||y 2M!==\'A\'&&\'2N\'||y 2K!==\'A\'&&\'2L\';a&&$p.2V[a]()})();',62,317,'||||||function|if|return|var||||||||||||||||||||||||length|typeof|cspec|undefined|this|else|attr|for|document|error|prop|compile|false|find|target|nodes|ii|append|autoRender|render|prepend||prototype|val|selector|quotefn|plugins|pos|||setfn|ni|item|sel|case|string|dataselectfn|break|test|querySelector|context|true|loop|replace|in|ls|getstr|openLoops|className|pfns|jj|isArray|null|dsel|TABLE|templates|tmp|firstChild|wrapquote|inner|itersel|gettarget|pVal|depth|filter|jQuery|node|compiler|match|attName|TBODY|while|isClass|setsig|isStyle|split|the|attLine|fnVal|createTextNode|removeChild|temp|items|sort|outerHTML|parts|call|isNodeValue|cs|loopi|loopil|sels|Math|ep|dojo|substring|style|join|replaceWith|TR|push|buildArg|with|bad|strs|filtered|cj|not|old|The|Array|on|cannot|loopfn|template|name|is|appendChild|sorter|sl|ctxt|insertBefore|concatenator|retStr|loopgen|your|_|attPfx|body|hasOwnProperty|an|selRx|slice|pure|index|syntax|charAt|Sly|sly|Sizzle|sizzle|Element|mootools|arguments|jquery|DOMAssistant|domassistant|core|libs|getPlugins|switch|was|found|root|floor|random|parseloopspec|1000000|str|autoAttr|nodeType|removeAttribute|indexOf|quot|tagName|checkClass|parentNode|value|console|getAutoNodes|continue|new|querySelectorAll|PURE|set|save_items|save_item|at|nTo|IE8|and|Safari4|FF3|iPhone|browser|you|standalone|need|only|available|arrays|objects|can|You|delete|JS|serializeToString|XMLSerializer|library|_error|framework|have|more|than|one|Error|nA|directive|action|must|be|or|_compiler|throw|CSS|getElementsByTagName|debugger|log|nextSibling|object|toString|Object|engine|INPUT|search|nbsp|nodevalue|getAttribute|src|IMG|cssText|setAttribute|splice|_a|substr|class|do|selected|ig|parseInt|cloneNode|_s|default|check|spec|THEAD|TFOOT|reserved|word|TD|TH|current|createElement|SPAN|display|none|running|innerHTML|iteration|allowed|modifiers|query|nPlease|cssSelect|no|attach|publicMethods|time|same|fn|extend|run|getElements|place|implement|select|addMethods|take|choose|another|zA|MooTools|Prototype|data'.split('|'),0,{}))
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 $p,2P=$p=6(){9 a=3k[0],2n=I;7(y a===\'16\'){2n=3k[1]||I}8 $p.3m(a,2n)};$p.3m=6(q,r,t){9 t=2K(),1q=[];2H(y q){14\'16\':1q=t.K(r||F,q);7(1q.x===0){G(\'2v 2u "\'+q+\'" 36 2f 33\')}19;14\'B\':G(\'2v 2L 4J 1E 2u 2b B, 4R 2m T\');19;55:1q=q}E(9 i=0,O=1q.x;i<O;i++){t[i]=1q[i]}t.x=O;9 u=\'59\'+1Z.31(1Z.2J()*2O)+\'2a\',2o=\'58\'+1Z.31(1Z.2J()*2O)+\'2a\',2q=/^(\\+)?([^\\@\\+]+)?\\@?([^\\+]+)?(\\+)?$/,32={54:\'53\',52:\'2I\'},1n=26.1n?6(o){8 26.1n(o)}:6(o){8 4Y.X.4W.1L(o)==="[4V 26]"};8 t;6 G(e){7(y 37!==\'B\'){37.4Q(e);4N}4L(\'2P G: \'+e);}6 2K(){9 a=$p.Y,f=6(){};f.X=a;f.X.H=a.H||H;f.X.P=a.P||P;f.X.N=a.N||N;f.X.K=a.K||K;f.X.4I=1J;f.X.4H=G;8 2Q f()}6 20(a){8 a.20||2Q 4F().4A(a)}6 1t(b,f){8 6(a){8 b(\'\'+f.1L(A,a))}}6 K(n,a){7(y n===\'16\'){a=n;n=I}7(y F.35!==\'B\'){8(n||F).35(a)}D{G(\'4x 4w 18 3d 4t 2B: 4s, 4r.5+, 4l+ 4k 4j+\\n\\4h 4g 3d 2d 2m 4f, 4e 4d a 4b 4a/49 2B a 48 T 47\')}}6 2s(c,d){8 6(a){9 b=[c[0]],n=c.x,1S,1D,1R,13;E(9 i=1;i<n;i++){1S=d[i].1L(A,a);1D=c[i];7(1S===\'\'){1R=b[b.x-1];7((13=1R.46(/[^\\s]+=\\"?$/))>-1){b[b.x-1]=1R.27(0,13);1D=1D.45(1)}}b[b.x]=1S;b[b.x]=1D}8 b.28(\'\')}}6 2G(p){9 m=p.1K(/^(\\w+)\\s*<-\\s*(\\S+)?$/);7(m===1p){G(\'2c 17 44: "\'+p+\'"\')}7(m[1]===\'U\'){G(\'"U<-..." 2b a 43 41 E 1E 40 3Z 3N.\\n\\3M 3L 3K 2r E 2m 17.\')}7(!m[2]||(m[2]&&(/1h/i).18(m[2]))){m[2]=6(a){8 a.1h}}8{2r:m[1],15:m[2]}}6 1a(c){7(y(c)===\'6\'){8 c}9 m=c.1K(/^[a-3J-Z\\$2a\\@][\\w\\$:-]*(\\.[\\w\\$:-]*[^\\.])*$/);7(m===1p){9 d=I,s=c,1N=[],1m=[],i=0,2D;7(/\\\'|\\"/.18(s.3e(0))){7(/\\\'|\\"/.18(s.3e(s.x-1))){2D=s.27(1,s.x-1);8 6(){8 2D}}}D{1F((m=s.1K(/#\\{([^{}]+)\\}/))!==1p){d=1c;1N[i++]=s.3i(0,m.3j);1m[i]=1a(m[1]);s=s.3i(m.3j+m[0].x,s.x)}}7(!d){G(\'2c 3H T 3l: \'+c)}1N[i]=s;8 2s(1N,1m)}m=c.1H(\'.\');8 6(a){9 b=a.1h||a,v=a[m[0]],i=0;7(v&&v.U){i+=1;7(m[i]===\'13\'){8 v.13}D{b=v.U}}9 n=m.x;E(;i<n;i++){7(!b){19}b=b[m[i]]}8(!b&&b!==0)?\'\':b}}6 1I(c,d,e){9 f,R,T,C,Q,L=[];7(y d===\'16\'){f=d;9 m=d.1K(2q);7(!m){G(\'2c T 3l: \'+d)}R=m[1];T=m[2];C=m[3];Q=m[4];7(T===\'.\'||(!T&&C)){L[0]=c}D{L=t.K(c,T)}7(!L||L.x===0){8 G(\'2v 1M "\'+d+\'" 36 2f 33 1r 1E 2u:\\n\'+20(c).1b(/\\t/g,\' \'))}}D{R=d.R;C=d.C;Q=d.Q;L=[c]}7(R||Q){7(R&&Q){G(\'Q/R 2g 3G 3p 3A 1E 3z 3y\')}D 7(e){G(\'3x Q/R/1b 3w 3v E 17 L\')}D 7(Q&&e){G(\'2g Q 2B 17 (15: \'+f+\')\')}}9 g,1k,V,1z,1y,1u,11;7(C){1z=(/^2t$/i).18(C);1y=(/^3u$/i).18(C);1u=1y?\'1l\':C;g=6(a,s){a.3t(2o+C,s);7(1u 1r a&&!1z){a[1u]=\'\'}7(a.39===1){a.3a(C);1y&&a.3a(1u)}};7(1z||1y){7(1z){1k=6(n){8 n.2t.3s}}D{1k=6(n){8 n.1l}}V=6(s){8 s.1b(/\\"/g,\'&3c;\')}}D{1k=6(n){8 n.3r(C)};V=6(s){8 s.1b(/\\"/g,\'&3c;\').1b(/\\s/g,\'&3q;\')}}7(R){11=6(a,s){g(a,s+1k(a))}}D 7(Q){11=6(a,s){g(a,1k(a)+s)}}D{11=6(a,s){g(a,s)}}}D{7(e){11=6(a,s){9 b=a.3f;7(b){b.2A(F.21(s),a.3B);b.22(a)}}}D{7(R){11=6(a,s){a.2A(F.21(s),a.1G)}}D 7(Q){11=6(a,s){a.2E(F.21(s))}}D{11=6(a,s){1F(a.1G){a.22(a.1G)}a.2E(F.21(s))}}}V=6(s){8 s}}8{C:C,M:L,3n:11,15:f,V:V}}6 1A(a,n){9 b=u+n+\':\';E(9 i=0;i<a.M.x;i++){a.3n(a.M[i],b)}}6 2C(j,k,l,m,n){8 6(g){9 a=k(g),2w=g[j],1W={1P:a},2l=0,x,2k=[],2j=6(b,c,d,e){9 f=g.13,2U=g.U,2T=g.1P;g.13=c.13=b;g.U=c.U=a[b];g.1P=a;y e!==\'B\'&&(g.x=e);7(y d===\'6\'&&d.1L(g.U,g)===I){2l++;8}2k.2i(l.1L(g.U,g));g.13=f;g.U=2U;g.1P=2T};g[j]=1W;7(1n(a)){x=a.x||0;7(y m===\'6\'){a.1O(m)}E(9 i=0,O=x;i<O;i++){2j(i,1W,n,x-2l)}}D{7(a&&y m!==\'B\'){G(\'1O 2b 3C 3D 2d 3E, 2f 3F\')}E(9 h 1r a){a.2z(h)&&2j(h,1W,n)}}y 2w!==\'B\'?g[j]=2w:3I g[j];8 2k.28(\'\')}}6 2y(a,b,c,d){9 e=I,1g,2p,1x,J;E(J 1r c){7(c.2z(J)){7(J===\'1O\'){2p=c.1O;2W}D 7(J===\'1x\'){1x=c.1x;2W}7(e){G(\'2g 3O 3P 3Q 3R 17 2d a L\')}1g=J;e=1c}}7(!1g){G(\'3S 1r 1E T: \'+b+\'\\3T 3U 3V 3W 3X a 16, a 6 3Y a 17(<-)\')}9 f=c[1g];7(y(f)===\'16\'||y(f)===\'6\'){c={};c[1g]={2L:f};8 2y(a,b,c,d)}9 g=2G(1g),1w=1a(g.15),L=1I(a,b,1c),M=L.M;E(i=0;i<M.x;i++){9 h=M[i],1v=1J(h,f);d[d.x]=1t(L.V,2C(g.2r,1w,1v,2p,1x));L.M=[h];1A(L,d.x-1)}}6 2R(n,d){9 e=n.42(\'*\'),2e=[],1o={a:[],l:{}},z,1Q,i,O,j,1i,12,1T,2h;E(i=-1,O=e.x;i<O;i++){12=i>-1?e[i]:n;7(12.39===1&&12.1l!==\'\'){1T=12.1l.1H(\' \');E(j=0,1i=1T.x;j<1i;j++){2h=1T[j];z=2Y(2h,12.2X);7(z!==I){1Q=(/4c/i).18(z.C);7(z.15.2V(\'@\')>-1||1Q){12.1l=12.1l.1b(\'@\'+z.C,\'\');7(1Q){z.C=I}}2e.2i({n:12,z:z})}}}}8 2e;6 2Y(c,a){9 b=c.1K(2q),C=b[3]||32[a],z={R:!!b[1],J:b[2],C:C,Q:!!b[4],15:c},i,O,1U,1V,W;E(i=1o.a.x-1;i>=0;i--){1U=1o.a[i];1V=1U.l[0];W=1V&&1V[z.J];7(y W!==\'B\'){z.J=1U.p+\'.\'+z.J;7(1o.l[z.J]===1c){W=W[0]}19}}7(y W===\'B\'){W=1a(z.J)(1n(d)?d[0]:d);7(W===\'\'){8 I}}7(1n(W)){1o.a.2i({l:W,p:z.J});1o.l[z.J]=1c;z.t=\'17\'}D{z.t=\'2N\'}8 z}}6 1J(a,b,c,d){9 e=[];d=d||c&&2R(a,c);7(c){9 j,1i,z,n,f,M,1w,1M,1v;1F(d.x>0){z=d[0].z;n=d[0].n;d.4i(0,1);7(z.t===\'2N\'){f=1I(n,z,I);1A(f,e.x);e[e.x]=1t(f.V,1a(z.J))}D{1w=1a(z.15);f=1I(n,z,1c);M=f.M;E(j=0,1i=M.x;j<1i;j++){1M=M[j];1v=1J(1M,I,c,d);e[e.x]=1t(f.V,2C(z.15,1w,1v));f.M=[1M];1A(f,e.x-1)}}}}9 f,1e,1X,25,i;E(9 g 1r b){7(b.2z(g)){i=0;1e=b[g];7(y(1e)===\'6\'||y(1e)===\'16\'){1X=g.1H(/\\s*,\\s*/);25=1X.x;4m{g=1X[i];f=1I(a,g,I);1A(f,e.x);e[e.x]=1t(f.V,1a(1e))}1F(++i<25)}D{2y(a,g,1e,e)}}}9 h=20(a),1m=[];h=h.1b(/<([^>]+)\\s(2I\\=""|4n)\\s?([^>]*)>/4o,"<$1 $3>");h=h.1H(2o).28(\'\');9 k=h.1H(u),p;E(9 i=1;i<k.x;i++){p=k[i];1m[i]=e[4p(p,10)];k[i]=p.27(p.2V(\':\')+1)}8 2s(k,1m)}6 H(b,c,d){9 e=1J((d||A[0]).4q(1c),b,c);8 6(a){8 e({1h:a})}}6 P(a,b){9 c=y b===\'6\'&&b,i=0,O=A.x;E(;i<O;i++){A[i]=2F(A[i],(c||t.H(b,I,A[i]))(a,I))}1h=1p;8 A}6 N(a,b){9 c=t.H(b,a,A[0]);E(9 i=0,O=A.x;i<O;i++){A[i]=2F(A[i],c(a,I))}1h=1p;8 A}6 2F(a,b){9 c,1Y=a.3f,1B=0;2H(a.2X){14\'1C\':14\'4u\':14\'4v\':b=\'<1f>\'+b+\'</1f>\';1B=1;19;14\'29\':b=\'<1f><1C>\'+b+\'</1C></1f>\';1B=2;19;14\'4y\':14\'4z\':b=\'<1f><1C><29>\'+b+\'</29></1C></1f>\';1B=3;19}1j=F.4B(\'4C\');1j.2t.4D=\'4E\';F.2x.2E(1j);1j.4G=b;c=1j.1G;1F(1B--){c=c.1G}1Y.2A(c,a);1Y.22(a);F.2x.22(1j);a=c;c=1Y=1p;8 a}};$p.Y={};$p.2M={23:6(){7(y F.1d===\'B\'){$p.Y.K=6(n,a){8 23.4K(a,n)}}},3b:6(){7(y F.1d===\'B\'){$p.Y.K=6(n,a){8 $(n).4M(a)}}38.4O({4P:[\'H\',\'P\',\'N\'],H:6(a,b){8 $p([A]).H(a,b)},P:6(a,b){8 $($p([A]).P(a,b))[0]},N:6(a,b){8 $($p([A]).N(a,b))[0]}})},34:6(){7(y F.1d===\'B\'){$p.Y.K=6(n,a){8 1s(n).K(a)}}1s.4S.4T({4U:6(a){A.24=a;8 A},H:6(a,b){8 $p(A).H(A.24||a,b)},P:6(a,b){8 1s($p(A).P(a,A.24||b))},N:6(a,b){8 1s($p(A).N(a,A.24||b))}})},2S:6(){7(y F.1d===\'B\'){$p.Y.K=6(n,a){8 $(n).4X(a)}}3o.4Z({H:6(a,b){8 $p(A).H(a,b)},P:6(a,b){8 $p(A).P(a,b)},N:6(a,b){8 $p(A).N(a,b)}})},X:6(){7(y F.1d===\'B\'){$p.Y.K=6(n,a){n=n===F?n.2x:n;8 y n===\'16\'?$$(n):$(n).50(a)}}3o.51({H:6(a,b,c){8 $p(a).H(b,c)},P:6(a,b,c){8 $p(a).P(b,c)},N:6(a,b,c){8 $p(a).N(b,c)}})},3h:6(){7(y F.1d===\'B\'){$p.Y.K=6(n,a){8 3g(a,n)}}},30:6(){7(y F.1d===\'B\'){$p.Y.K=6(n,a){8 2Z(a,n)}}}};(6(){9 a=y 23!==\'B\'&&\'23\'||y 38!==\'B\'&&\'3b\'||y 1s!==\'B\'&&\'34\'||y 56!==\'B\'&&\'2S\'||y 57!==\'B\'&&\'X\'||y 3g!==\'B\'&&\'3h\'||y 2Z!==\'B\'&&\'30\';a&&$p.2M[a]()})();',62,320,'||||||function|if|return|var||||||||||||||||||||||||length|typeof|cspec|this|undefined|attr|else|for|document|error|compile|false|prop|find|target|nodes|autoRender|ii|render|append|prepend||selector|item|quotefn|val|prototype|plugins|||setfn|ni|pos|case|sel|string|loop|test|break|dataselectfn|replace|true|querySelector|dsel|TABLE|ls|context|jj|tmp|getstr|className|pfns|isArray|openLoops|null|templates|in|jQuery|wrapquote|attName|inner|itersel|filter|isClass|isStyle|setsig|depth|TBODY|pVal|the|while|firstChild|split|gettarget|compiler|match|call|node|parts|sort|items|isNodeValue|attLine|fnVal|cs|loopi|loopil|temp|sels|ep|Math|outerHTML|createTextNode|removeChild|dojo|_pure_d|sl|Array|substring|join|TR|_|is|bad|on|an|not|cannot|cj|push|buildArg|strs|filtered|your|ctxt|attPfx|sorter|selRx|name|concatenator|style|template|The|old|body|loopgen|hasOwnProperty|insertBefore|with|loopfn|retStr|appendChild|replaceWith|parseloopspec|switch|value|random|getPlugins|root|libs|str|1000000|pure|new|getAutoNodes|mootools|save_items|save_item|indexOf|continue|tagName|checkClass|Sly|sly|floor|autoAttr|found|jquery|querySelectorAll|was|console|DOMAssistant|nodeType|removeAttribute|domassistant|quot|PURE|charAt|parentNode|Sizzle|sizzle|slice|index|arguments|syntax|core|set|Element|place|nbsp|getAttribute|cssText|setAttribute|class|allowed|modifiers|no|time|same|at|nextSibling|only|available|arrays|objects|take|data|delete|zA|another|choose|nPlease|iteration|have|more|than|one|Error|nA|directive|action|must|be|or|running|current|word|getElementsByTagName|reserved|spec|substr|search|engine|CSS|framework|library|JS|nodevalue|need|you|browser|run|nTo|splice|IE8|and|Safari4|do|selected|ig|parseInt|cloneNode|FF3|iPhone|standalone|THEAD|TFOOT|can|You|TD|TH|serializeToString|createElement|SPAN|display|none|XMLSerializer|innerHTML|_error|_compiler|of|query|throw|cssSelect|debugger|attach|publicMethods|log|check|fn|extend|directives|object|toString|getElements|Object|implement|select|addMethods|INPUT|src|IMG|default|MooTools|Prototype|_a|_s'.split('|'),0,{}))
Please sign in to comment.
Something went wrong with that request. Please try again.