Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

node[attName] = '' breaks FF4 but needed by IE to remove attributes. …

…Added a try catch while waiting for something better or FF fix.
  • Loading branch information...
commit 4ee78f399e3421be467084e88c3fb540b4976fac 1 parent e0d8827
Mic when working on PURE authored

Showing 2 changed files with 21 additions and 21 deletions. Show diff stats Hide diff stats

  1. +1 1  libs/pure.js
  2. +20 20 libs/pure_min.js
2  libs/pure.js
@@ -282,7 +282,7 @@ $p.core = function(sel, ctxt, plugins){
282 282 setstr = function(node, s) {
283 283 node.setAttribute(attPfx + attr, s);
284 284 if (attName in node && !isStyle) {
285   - node[attName] = '';
  285 + try{node[attName] = '';}catch(e){} //FF4 gives an error sometimes
286 286 }
287 287 if (node.nodeType === 1) {
288 288 node.removeAttribute(attr);
40 libs/pure_min.js
@@ -7,27 +7,27 @@
7 7 Copyright (c) 2011 Michael Cvilic - BeeBole.com
8 8
9 9 Thanks to Rog Peppe for the functional JS jump
10   - revision: 2.69
  10 + revision: 2.70
11 11 */
12   -var $p,pure=$p=function(e,k){var p=e,r=false;if(typeof p==="string")r=k||false;else if(p&&!p[0]&&!p.length)p=[p];return $p.core(p,r)};
13   -$p.core=function(e,k,p){function r(a){if(typeof console!=="undefined"){console.log(a);debugger}throw"pure error: "+a;}function O(){var a=$p.plugins,b=function(){};b.prototype=a;b.prototype.compile=a.compile||P;b.prototype.render=a.render||Q;b.prototype.autoRender=a.autoRender||R;b.prototype.find=a.find||S;b.prototype._compiler=B;b.prototype._error=r;return new b}function G(a){return a.outerHTML||function(b){var d=document.createElement("div");d.appendChild(b.cloneNode(true));return d.innerHTML}(a)}
14   -function C(a,b){return function(d){return a(""+b.call(d.item||d.context,d))}}function S(a,b){if(typeof a==="string"){b=a;a=false}return typeof document.querySelectorAll!=="undefined"?(a||document).querySelectorAll(b):r("You can test PURE standalone with: iPhone, FF3.5+, Safari4+ and IE8+\n\nTo run PURE on your browser, you need a JS library/framework with a CSS selector engine")}function H(a,b){return function(d){for(var c=[a[0]],g=a.length,i,j,l,f,m=1;m<g;m++){i=b[m].call(this,d);j=a[m];if(i===""){l=
15   -c[c.length-1];if((f=l.search(/[^\s]+=\"?$/))>-1){c[c.length-1]=l.substring(0,f);j=j.substr(1)}}c[c.length]=i;c[c.length]=j}return c.join("")}}function T(a){var b=a.match(/^(\w+)\s*<-\s*(\S+)?$/);b===null&&r('bad loop spec: "'+a+'"');b[1]==="item"&&r('"item<-..." is a reserved word for the current running iteration.\n\nPlease choose another name for your loop.');if(!b[2]||b[2]&&/context/i.test(b[2]))b[2]=function(d){return d.context};return{name:b[1],sel:b[2]}}function y(a){if(typeof a==="function")return a;
16   -var b=a.match(/^[a-zA-Z\$_\@][\w\$:-]*(\.[\w\$:-]*[^\.])*$/);if(b===null){var d=false,c=a,g=[],i=[],j=0,l;if(/\'|\"/.test(c.charAt(0))){if(/\'|\"/.test(c.charAt(c.length-1))){l=c.substring(1,c.length-1);return function(){return l}}}else for(;(b=c.match(/#\{([^{}]+)\}/))!==null;){d=true;g[j++]=c.slice(0,b.index);i[j]=y(b[1]);c=c.slice(b.index+b[0].length,c.length)}if(!d)return function(){return a};g[j]=c;return H(g,i)}b=a.split(".");return function(f){var m=f.context||f,n=f[b[0]];f=0;if(n&&n.item){f+=
17   -1;if(b[f]==="pos")return n.pos;else m=n.item}for(n=b.length;f<n;f++){if(!m)break;m=m[b[f]]}return!m&&m!==0?"":m}}function D(a,b,d){var c,g,i,j,l,f=[];if(typeof b==="string"){c=b;(l=b.match(I))||r("bad selector syntax: "+b);g=l[1];i=l[2];j=l[3];l=l[4];if(i==="."||!i&&j)f[0]=a;else f=p.find(a,i);if(!f||f.length===0)return r('The node "'+b+'" was not found in the template:\n'+G(a).replace(/\t/g," "))}else{g=b.prepend;j=b.attr;l=b.append;f=[a]}if(g||l)if(g&&l)r("append/prepend cannot take place at the same time");
18   -else if(d)r("no append/prepend/replace modifiers allowed for loop target");else l&&d&&r("cannot append with loop (sel: "+c+")");var m,n,t,s;if(j){a=/^style$/i.test(j);s=(t=/^class$/i.test(j))?"className":j;m=function(h,o){h.setAttribute(J+j,o);if(h.nodeType===1){h.removeAttribute(j);t&&h.removeAttribute(s)}};n=a||t?a?function(h){return h.style.cssText}:function(h){return h.className}:function(h){return h.getAttribute(j)};a=function(h){return h.replace(/\"/g,"&quot;")};g=g?function(h,o){m(h,o+n(h))}:
19   -l?function(h,o){m(h,n(h)+o)}:function(h,o){m(h,o)}}else{g=d?function(h,o){var v=h.parentNode;if(v){v.insertBefore(document.createTextNode(o),h.nextSibling);v.removeChild(h)}}:g?function(h,o){h.insertBefore(document.createTextNode(o),h.firstChild)}:l?function(h,o){h.appendChild(document.createTextNode(o))}:function(h,o){for(;h.firstChild;)h.removeChild(h.firstChild);h.appendChild(document.createTextNode(o))};a=function(h){return h}}return{attr:j,nodes:f,set:g,sel:c,quotefn:a}}function E(a,b){for(var d=
20   -K+b+":",c=0;c<a.nodes.length;c++)a.set(a.nodes[c],d)}function L(a,b,d,c,g){return function(i){var j=b(i),l=i[a],f={items:j},m=0,n,t=[],s=function(o,v,q,x){var z=i.pos,u=i.item,U=i.items;i.pos=v.pos=o;i.item=v.item=j[o];i.items=j;typeof x!=="undefined"&&(i.length=x);if(typeof q==="function"&&q.call(i.item,i)===false)m++;else{t.push(d.call(i.item,i));i.pos=z;i.item=u;i.items=U}};i[a]=f;if(F(j)){n=j.length||0;typeof c==="function"&&j.sort(c);for(var h=0;h<n;h++)s(h,f,g,n-m)}else{j&&typeof c!=="undefined"&&
21   -r("sort is only available on arrays, not objects");for(n in j)j.hasOwnProperty(n)&&s(n,f,g)}typeof l!=="undefined"?i[a]=l:delete i[a];return t.join("")}}function M(a,b,d,c){var g=false,i,j,l,f;for(f in d)if(d.hasOwnProperty(f))if(f==="sort")j=d.sort;else if(f==="filter")l=d.filter;else{g&&r("cannot have more than one loop on a target");i=f;g=true}i||r("Error in the selector: "+b+"\nA directive action must be a string, a function or a loop(<-)");g=d[i];if(typeof g==="string"||typeof g==="function"){d=
22   -{};d[i]={root:g};return M(a,b,d,c)}d=T(i);i=y(d.sel);a=D(a,b,true);b=a.nodes;for(w=0;w<b.length;w++){f=b[w];var m=B(f,g);c[c.length]=C(a.quotefn,L(d.name,i,m,j,l));a.nodes=[f];E(a,c.length-1)}return a}function V(a,b){function d(o,v){var q=o.match(I);q={prepend:!!q[1],prop:q[2],attr:q[3]||W[v],append:!!q[4],sel:o};var x,z,u;for(x=i.a.length-1;x>=0;x--){z=i.a[x];u=(u=z.l[0])&&u[q.prop];if(typeof u!=="undefined"){q.prop=z.p+"."+q.prop;if(i.l[q.prop]===true)u=u[0];break}}if(typeof u==="undefined"){u=
23   -y(q.prop)(F(b)?b[0]:b);if(u==="")return false}if(F(u)){i.a.push({l:u,p:q.prop});i.l[q.prop]=true;q.t="loop"}else q.t="str";return q}var c=a.getElementsByTagName("*"),g=[],i={a:[],l:{}},j,l,f,m,n,t,s,h;f=-1;for(m=c.length;f<m;f++){s=f>-1?c[f]:a;if(s.nodeType===1&&s.className!==""){h=s.className.split(" ");n=0;for(t=h.length;n<t;n++){j=h[n];j=d(j,s.tagName);if(j!==false){l=/nodevalue/i.test(j.attr);if(j.sel.indexOf("@")>-1||l){s.className=s.className.replace("@"+j.attr,"");if(l)j.attr=false}g.push({n:s,
24   -cspec:j})}}}}return g}function B(a,b,d,c){var g=[],i,j,l,f,m,n,t,s,h,o=[];c=c||d&&V(a,d);if(d)for(;c.length>0;){l=c[0].cspec;f=c[0].n;c.splice(0,1);if(l.t==="str"){f=D(f,l,false);E(f,g.length);g[g.length]=C(f.quotefn,y(l.prop))}else{n=y(l.sel);f=D(f,l,true);m=f.nodes;i=0;for(j=m.length;i<j;i++){t=m[i];s=B(t,false,d,c);g[g.length]=C(f.quotefn,L(l.sel,n,s));f.nodes=[t];E(f,g.length-1)}}}for(h in b)if(b.hasOwnProperty(h)){d=0;c=b[h];l=h.split(/\s*,\s*/);n=l.length;do if(typeof c==="function"||typeof c===
25   -"string"){h=l[d];f=D(a,h,false);E(f,g.length);g[g.length]=C(f.quotefn,y(c))}else M(a,h,c,g);while(++d<n)}a=G(a);a=a.replace(/<([^>]+)\s(value\=""|selected)\s?([^>]*)>/ig,"<$1 $3>");a=a.split(J).join("");a=a.split(K);for(d=1;d<a.length;d++){b=a[d];o[d]=g[parseInt(b,10)];a[d]=b.substring(b.indexOf(":")+1)}return H(a,o)}function P(a,b,d){var c=B((d||this[0]).cloneNode(true),a,b);return function(g){return c({context:g})}}function Q(a,b){for(var d=typeof b==="function"&&b,c=0,g=this.length;c<g;c++)this[c]=
26   -N(this[c],(d||p.compile(b,false,this[c]))(a,false));context=null;return this}function R(a,b){for(var d=p.compile(b,a,this[0]),c=0,g=this.length;c<g;c++)this[c]=N(this[c],d(a,false));context=null;return this}function N(a,b){var d,c=a.parentNode,g=0;if(!c){c=document.createElement("DIV");c.appendChild(a)}switch(a.tagName){case "TBODY":case "THEAD":case "TFOOT":b="<TABLE>"+b+"</TABLE>";g=1;break;case "TR":b="<TABLE><TBODY>"+b+"</TBODY></TABLE>";g=2;break;case "TD":case "TH":b="<TABLE><TBODY><TR>"+b+
27   -"</TR></TBODY></TABLE>";g=3;break}tmp=document.createElement("SPAN");tmp.style.display="none";document.body.appendChild(tmp);tmp.innerHTML=b;for(d=tmp.firstChild;g--;)d=d.firstChild;c.insertBefore(d,a);c.removeChild(a);document.body.removeChild(tmp);return a=d}var A=[];p=p||O();switch(typeof e){case "string":A=p.find(k||document,e);A.length===0&&r('The template "'+e+'" was not found');break;case "undefined":r("The root of the template is undefined, check your selector");break;default:A=e}var w=0;
28   -for(e=A.length;w<e;w++)p[w]=A[w];p.length=e;var K="_s"+Math.floor(Math.random()*1E6)+"_",J="_a"+Math.floor(Math.random()*1E6)+"_",I=/^(\+)?([^\@\+]+)?\@?([^\+]+)?(\+)?$/,W={IMG:"src",INPUT:"value"},F=Array.isArray?function(a){return Array.isArray(a)}:function(a){return Object.prototype.toString.call(a)==="[object Array]"};return p};$p.plugins={};
  12 +var $p,pure=$p=function(e,k){var o=e,t=false;if(typeof o==="string")t=k||false;else if(o&&!o[0]&&!o.length)o=[o];return $p.core(o,t)};
  13 +$p.core=function(e,k,o){function t(a){if(typeof console!=="undefined"){console.log(a);debugger}throw"pure error: "+a;}function O(){var a=$p.plugins,b=function(){};b.prototype=a;b.prototype.compile=a.compile||P;b.prototype.render=a.render||Q;b.prototype.autoRender=a.autoRender||R;b.prototype.find=a.find||S;b.prototype._compiler=B;b.prototype._error=t;return new b}function G(a){return a.outerHTML||function(b){var d=document.createElement("div");d.appendChild(b.cloneNode(true));return d.innerHTML}(a)}
  14 +function C(a,b){return function(d){return a(""+b.call(d.item||d.context,d))}}function S(a,b){if(typeof a==="string"){b=a;a=false}return typeof document.querySelectorAll!=="undefined"?(a||document).querySelectorAll(b):t("You can test PURE standalone with: iPhone, FF3.5+, Safari4+ and IE8+\n\nTo run PURE on your browser, you need a JS library/framework with a CSS selector engine")}function H(a,b){return function(d){for(var c=[a[0]],g=a.length,h,j,l,f,m=1;m<g;m++){h=b[m].call(this,d);j=a[m];if(h===""){l=
  15 +c[c.length-1];if((f=l.search(/[^\s]+=\"?$/))>-1){c[c.length-1]=l.substring(0,f);j=j.substr(1)}}c[c.length]=h;c[c.length]=j}return c.join("")}}function T(a){var b=a.match(/^(\w+)\s*<-\s*(\S+)?$/);b===null&&t('bad loop spec: "'+a+'"');b[1]==="item"&&t('"item<-..." is a reserved word for the current running iteration.\n\nPlease choose another name for your loop.');if(!b[2]||b[2]&&/context/i.test(b[2]))b[2]=function(d){return d.context};return{name:b[1],sel:b[2]}}function y(a){if(typeof a==="function")return a;
  16 +var b=a.match(/^[a-zA-Z\$_\@][\w\$:-]*(\.[\w\$:-]*[^\.])*$/);if(b===null){var d=false,c=a,g=[],h=[],j=0,l;if(/\'|\"/.test(c.charAt(0))){if(/\'|\"/.test(c.charAt(c.length-1))){l=c.substring(1,c.length-1);return function(){return l}}}else for(;(b=c.match(/#\{([^{}]+)\}/))!==null;){d=true;g[j++]=c.slice(0,b.index);h[j]=y(b[1]);c=c.slice(b.index+b[0].length,c.length)}if(!d)return function(){return a};g[j]=c;return H(g,h)}b=a.split(".");return function(f){var m=f.context||f,n=f[b[0]];f=0;if(n&&n.item){f+=
  17 +1;if(b[f]==="pos")return n.pos;else m=n.item}for(n=b.length;f<n;f++){if(!m)break;m=m[b[f]]}return!m&&m!==0?"":m}}function D(a,b,d){var c,g,h,j,l,f=[];if(typeof b==="string"){c=b;(l=b.match(I))||t("bad selector syntax: "+b);g=l[1];h=l[2];j=l[3];l=l[4];if(h==="."||!h&&j)f[0]=a;else f=o.find(a,h);if(!f||f.length===0)return t('The node "'+b+'" was not found in the template:\n'+G(a).replace(/\t/g," "))}else{g=b.prepend;j=b.attr;l=b.append;f=[a]}if(g||l)if(g&&l)t("append/prepend cannot take place at the same time");
  18 +else if(d)t("no append/prepend/replace modifiers allowed for loop target");else l&&d&&t("cannot append with loop (sel: "+c+")");var m,n,u,s,q;if(j){u=/^style$/i.test(j);q=(s=/^class$/i.test(j))?"className":j;m=function(i,r){i.setAttribute(J+j,r);if(q in i&&!u)try{i[q]=""}catch(p){}if(i.nodeType===1){i.removeAttribute(j);s&&i.removeAttribute(q)}};n=u||s?u?function(i){return i.style.cssText}:function(i){return i.className}:function(i){return i.getAttribute(j)};a=function(i){return i.replace(/\"/g,"&quot;")};
  19 +g=g?function(i,r){m(i,r+n(i))}:l?function(i,r){m(i,n(i)+r)}:function(i,r){m(i,r)}}else{g=d?function(i,r){var p=i.parentNode;if(p){p.insertBefore(document.createTextNode(r),i.nextSibling);p.removeChild(i)}}:g?function(i,r){i.insertBefore(document.createTextNode(r),i.firstChild)}:l?function(i,r){i.appendChild(document.createTextNode(r))}:function(i,r){for(;i.firstChild;)i.removeChild(i.firstChild);i.appendChild(document.createTextNode(r))};a=function(i){return i}}return{attr:j,nodes:f,set:g,sel:c,quotefn:a}}
  20 +function E(a,b){for(var d=K+b+":",c=0;c<a.nodes.length;c++)a.set(a.nodes[c],d)}function L(a,b,d,c,g){return function(h){var j=b(h),l=h[a],f={items:j},m=0,n,u=[],s=function(i,r,p,x){var z=h.pos,v=h.item,U=h.items;h.pos=r.pos=i;h.item=r.item=j[i];h.items=j;typeof x!=="undefined"&&(h.length=x);if(typeof p==="function"&&p.call(h.item,h)===false)m++;else{u.push(d.call(h.item,h));h.pos=z;h.item=v;h.items=U}};h[a]=f;if(F(j)){n=j.length||0;typeof c==="function"&&j.sort(c);for(var q=0;q<n;q++)s(q,f,g,n-m)}else{j&&
  21 +typeof c!=="undefined"&&t("sort is only available on arrays, not objects");for(n in j)j.hasOwnProperty(n)&&s(n,f,g)}typeof l!=="undefined"?h[a]=l:delete h[a];return u.join("")}}function M(a,b,d,c){var g=false,h,j,l,f;for(f in d)if(d.hasOwnProperty(f))if(f==="sort")j=d.sort;else if(f==="filter")l=d.filter;else{g&&t("cannot have more than one loop on a target");h=f;g=true}h||t("Error in the selector: "+b+"\nA directive action must be a string, a function or a loop(<-)");g=d[h];if(typeof g==="string"||
  22 +typeof g==="function"){d={};d[h]={root:g};return M(a,b,d,c)}d=T(h);h=y(d.sel);a=D(a,b,true);b=a.nodes;for(w=0;w<b.length;w++){f=b[w];var m=B(f,g);c[c.length]=C(a.quotefn,L(d.name,h,m,j,l));a.nodes=[f];E(a,c.length-1)}return a}function V(a,b){function d(i,r){var p=i.match(I);p={prepend:!!p[1],prop:p[2],attr:p[3]||W[r],append:!!p[4],sel:i};var x,z,v;for(x=h.a.length-1;x>=0;x--){z=h.a[x];v=(v=z.l[0])&&v[p.prop];if(typeof v!=="undefined"){p.prop=z.p+"."+p.prop;if(h.l[p.prop]===true)v=v[0];break}}if(typeof v===
  23 +"undefined"){v=y(p.prop)(F(b)?b[0]:b);if(v==="")return false}if(F(v)){h.a.push({l:v,p:p.prop});h.l[p.prop]=true;p.t="loop"}else p.t="str";return p}var c=a.getElementsByTagName("*"),g=[],h={a:[],l:{}},j,l,f,m,n,u,s,q;f=-1;for(m=c.length;f<m;f++){s=f>-1?c[f]:a;if(s.nodeType===1&&s.className!==""){q=s.className.split(" ");n=0;for(u=q.length;n<u;n++){j=q[n];j=d(j,s.tagName);if(j!==false){l=/nodevalue/i.test(j.attr);if(j.sel.indexOf("@")>-1||l){s.className=s.className.replace("@"+j.attr,"");if(l)j.attr=
  24 +false}g.push({n:s,cspec:j})}}}}return g}function B(a,b,d,c){var g=[],h,j,l,f,m,n,u,s,q,i=[];c=c||d&&V(a,d);if(d)for(;c.length>0;){l=c[0].cspec;f=c[0].n;c.splice(0,1);if(l.t==="str"){f=D(f,l,false);E(f,g.length);g[g.length]=C(f.quotefn,y(l.prop))}else{n=y(l.sel);f=D(f,l,true);m=f.nodes;h=0;for(j=m.length;h<j;h++){u=m[h];s=B(u,false,d,c);g[g.length]=C(f.quotefn,L(l.sel,n,s));f.nodes=[u];E(f,g.length-1)}}}for(q in b)if(b.hasOwnProperty(q)){d=0;c=b[q];l=q.split(/\s*,\s*/);n=l.length;do if(typeof c===
  25 +"function"||typeof c==="string"){q=l[d];f=D(a,q,false);E(f,g.length);g[g.length]=C(f.quotefn,y(c))}else M(a,q,c,g);while(++d<n)}a=G(a);a=a.replace(/<([^>]+)\s(value\=""|selected)\s?([^>]*)>/ig,"<$1 $3>");a=a.split(J).join("");a=a.split(K);for(d=1;d<a.length;d++){b=a[d];i[d]=g[parseInt(b,10)];a[d]=b.substring(b.indexOf(":")+1)}return H(a,i)}function P(a,b,d){var c=B((d||this[0]).cloneNode(true),a,b);return function(g){return c({context:g})}}function Q(a,b){for(var d=typeof b==="function"&&b,c=0,g=
  26 +this.length;c<g;c++)this[c]=N(this[c],(d||o.compile(b,false,this[c]))(a,false));context=null;return this}function R(a,b){for(var d=o.compile(b,a,this[0]),c=0,g=this.length;c<g;c++)this[c]=N(this[c],d(a,false));context=null;return this}function N(a,b){var d,c=a.parentNode,g=0;if(!c){c=document.createElement("DIV");c.appendChild(a)}switch(a.tagName){case "TBODY":case "THEAD":case "TFOOT":b="<TABLE>"+b+"</TABLE>";g=1;break;case "TR":b="<TABLE><TBODY>"+b+"</TBODY></TABLE>";g=2;break;case "TD":case "TH":b=
  27 +"<TABLE><TBODY><TR>"+b+"</TR></TBODY></TABLE>";g=3;break}tmp=document.createElement("SPAN");tmp.style.display="none";document.body.appendChild(tmp);tmp.innerHTML=b;for(d=tmp.firstChild;g--;)d=d.firstChild;c.insertBefore(d,a);c.removeChild(a);document.body.removeChild(tmp);return a=d}var A=[];o=o||O();switch(typeof e){case "string":A=o.find(k||document,e);A.length===0&&t('The template "'+e+'" was not found');break;case "undefined":t("The root of the template is undefined, check your selector");break;
  28 +default:A=e}var w=0;for(e=A.length;w<e;w++)o[w]=A[w];o.length=e;var K="_s"+Math.floor(Math.random()*1E6)+"_",J="_a"+Math.floor(Math.random()*1E6)+"_",I=/^(\+)?([^\@\+]+)?\@?([^\+]+)?(\+)?$/,W={IMG:"src",INPUT:"value"},F=Array.isArray?function(a){return Array.isArray(a)}:function(a){return Object.prototype.toString.call(a)==="[object Array]"};return o};$p.plugins={};
29 29 $p.libs={dojo:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){return dojo.query(k,e)}},domassistant:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){return $(e).cssSelect(k)};DOMAssistant.attach({publicMethods:["compile","render","autoRender"],compile:function(e,k){return $p([this]).compile(e,k)},render:function(e,k){return $($p([this]).render(e,k))[0]},autoRender:function(e,k){return $($p([this]).autoRender(e,k))[0]}})},
30 30 jquery:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){return jQuery(e).find(k)};jQuery.fn.extend({directives:function(e){this._pure_d=e;return this},compile:function(e,k){return $p(this).compile(this._pure_d||e,k)},render:function(e,k){return jQuery($p(this).render(e,this._pure_d||k))},autoRender:function(e,k){return jQuery($p(this).autoRender(e,this._pure_d||k))}})},mootools:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,
31   -k){return $(e).getElements(k)};Element.implement({compile:function(e,k){return $p(this).compile(e,k)},render:function(e,k){return $p([this]).render(e,k)},autoRender:function(e,k){return $p([this]).autoRender(e,k)}})},prototype:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){e=e===document?e.body:e;return typeof e==="string"?$$(e):$(e).select(k)};Element.addMethods({compile:function(e,k,p){return $p([e]).compile(k,p)},render:function(e,k,p){return $p([e]).render(k,
32   -p)},autoRender:function(e,k,p){return $p([e]).autoRender(k,p)}})},sizzle:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){return Sizzle(k,e)}},sly:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){return Sly(k,e)}}};
  31 +k){return $(e).getElements(k)};Element.implement({compile:function(e,k){return $p(this).compile(e,k)},render:function(e,k){return $p([this]).render(e,k)},autoRender:function(e,k){return $p([this]).autoRender(e,k)}})},prototype:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){e=e===document?e.body:e;return typeof e==="string"?$$(e):$(e).select(k)};Element.addMethods({compile:function(e,k,o){return $p([e]).compile(k,o)},render:function(e,k,o){return $p([e]).render(k,
  32 +o)},autoRender:function(e,k,o){return $p([e]).autoRender(k,o)}})},sizzle:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){return Sizzle(k,e)}},sly:function(){if(typeof document.querySelector==="undefined")$p.plugins.find=function(e,k){return Sly(k,e)}}};
33 33 (function(){var e=typeof dojo!=="undefined"&&"dojo"||typeof DOMAssistant!=="undefined"&&"domassistant"||typeof jQuery!=="undefined"&&"jquery"||typeof MooTools!=="undefined"&&"mootools"||typeof Prototype!=="undefined"&&"prototype"||typeof Sizzle!=="undefined"&&"sizzle"||typeof Sly!=="undefined"&&"sly";e&&$p.libs[e]();if(typeof exports!=="undefined")exports.$p=$p})();

0 comments on commit 4ee78f3

Please sign in to comment.
Something went wrong with that request. Please try again.