Skip to content
Browse files

make dist files

  • Loading branch information...
1 parent dd50d61 commit 19c01b697bbf6510c4bdd0537982893d95d2713f @fat fat committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 qwery.js
  2. +1 −1 qwery.min.js
View
2 qwery.js
@@ -13,7 +13,7 @@
idOnly = /^#([\w\-]+$)/,
classOnly = /^\.([\w\-]+)$/,
tagOnly = /^([\w\-]+)$/,
- tagAndOrClass = /^([\w]+)?\.([\w\-])+$/,
+ tagAndOrClass = /^(\w+)?\.([\w\-]+)$/,
html = doc.documentElement,
tokenizr = /\s(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\])/,
simple = /^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,
View
2 qwery.min.js
@@ -5,4 +5,4 @@
* MIT License
*/
-!function(a,b){function V(a){var b=[],c,d;label:for(c=0;c<a.length;c++){for(d=0;d<b.length;d++)if(b[d]==a[c])continue label;b[b.length]=a[c]}return b}function U(a,c){c=typeof c=="string"?U(c)[0]:c||b;if(!c)return[];if(h=T(a,c))return h;if(b.getElementsByClassName&&(h=a.match(y)))return G(c.getElementsByClassName(h[1]));return G(c.querySelectorAll(a))}function T(a,c){if(h=a.match(x))return(m=b.getElementById(h[1]))?[m]:[];if(h=a.match(z))return G(c.getElementsByTagName(h[1]));return!1}function R(a){var b=[],c=[],d,g=L.g(a)||L.s(a,a.split(C));g=g.slice(0);if(!g.length)return b;b=O(g);if(!g.length)return b;for(e=b.length,f=0;e--;){n=b[e],j=n;for(d=g.length;d--;)parents:while(j!==B&&(j=j.parentNode))if(p=N.apply(j,M(g[d])))break parents;p&&(c[f++]=n)}return c}function Q(a,b,c){switch(a){case"=":return b==c;case"^=":return b.match(K.g("^="+c)||K.s("^="+c,new RegExp("^"+P(c))));case"$=":return b.match(K.g("$="+c)||K.s("$="+c,new RegExp(P(c)+"$")));case"*=":return b.match(K.g(c)||K.s(c,new RegExp(P(c))));case"~=":return b.match(K.g("~="+c)||K.s("~="+c,new RegExp("(?:^|\\s+)"+P(c)+"(?:\\s+|$)")));case"|=":return b.match(K.g("|="+c)||K.s("|="+c,new RegExp("^"+P(c)+"(-|$)")))}return!1}function P(a){return J.g(a)||J.s(a,a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"))}function O(a){var c=[],d=a.pop(),e=M(d),f=e[1]||"*",g,i,j,k=a.length&&(h=a[0].match(x))?b.getElementById(h[1]):b;if(!k)return c;j=k.getElementsByTagName(f);for(g=0,i=j.length;g<i;g++)m=j[g],(r=N.apply(m,e))&&c.push(r);return c}function N(a,b,c,e,f,g,h){var j,k,l;if(b&&this.tagName.toLowerCase()!==b)return!1;if(c&&(j=c.match(v))&&j[1]!==this.id)return!1;if(c&&(q=c.match(w)))for(d=q.length;d--;){k=q[d].slice(1);if(!(I.g(k)||I.s(k,new RegExp("(^|\\s+)"+k+"(\\s+|$)"))).test(this.className))return!1}if(e&&!h){i=this.attributes;for(l in i)if(Object.prototype.hasOwnProperty.call(i,l)&&(i[l].name||l)==f)return this}if(e&&!Q(g,this.getAttribute(f)||"",h))return!1;return this}function M(a){return a.match(F)}function G(a){k=[];for(d=0,o=a.length;d<o;d++)k[d]=a[d];return k}var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=/#([\w\-]+)/,w=/\.[\w\-]+/g,x=/^#([\w\-]+$)/,y=/^\.([\w\-]+)$/,z=/^([\w\-]+)$/,A=/^([\w]+)?\.([\w\-])+$/,B=b.documentElement,C=/\s(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\])/,D=/^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,E=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,F=new RegExp(D.source+"("+E.source+")?"),H=function(){this.c={}};H.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b){return this.c[a]=b}};var I=new H,J=new H,K=new H,L=new H,S="compareDocumentPosition"in B?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in B?function(a,b){return b!==a&&b.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},W=function(){if(b.querySelector&&b.querySelectorAll)return U;return function(a,c){c=typeof c=="string"?W(c)[0]:c||b;if(!c)return[];var d,f=[],g=[],i;if(h=T(a,c))return h;if(h=a.match(A)){s=c.getElementsByTagName(h[1]||"*"),k=I.g(h[2])||I.s(h[2],new RegExp("(^|\\s+)"+h[2]+"(\\s+|$)"));for(d=s.length,e=0;d--;)k.test(s[d].className)&&(f[e++]=s[d]);return f}for(s=a.split(","),d=s.length;d--;)g[d]=R(s[d]);for(d=g.length;u=g[--d];){var j=u;if(c!==b){j=[];for(e=u.length;i=u[--e];)S(i,c)&&j.push(i)}f=f.concat(j)}return V(f)}}(),X=a.qwery;W.noConflict=function(){a.qwery=X;return this},a.qwery=W}(this,document)
+!function(a,b){function V(a){var b=[],c,d;label:for(c=0;c<a.length;c++){for(d=0;d<b.length;d++)if(b[d]==a[c])continue label;b[b.length]=a[c]}return b}function U(a,c){c=typeof c=="string"?U(c)[0]:c||b;if(!c)return[];if(h=T(a,c))return h;if(b.getElementsByClassName&&(h=a.match(y)))return G(c.getElementsByClassName(h[1]));return G(c.querySelectorAll(a))}function T(a,c){if(h=a.match(x))return(m=b.getElementById(h[1]))?[m]:[];if(h=a.match(z))return G(c.getElementsByTagName(h[1]));return!1}function R(a){var b=[],c=[],d,g=L.g(a)||L.s(a,a.split(C));g=g.slice(0);if(!g.length)return b;b=O(g);if(!g.length)return b;for(e=b.length,f=0;e--;){n=b[e],j=n;for(d=g.length;d--;)parents:while(j!==B&&(j=j.parentNode))if(p=N.apply(j,M(g[d])))break parents;p&&(c[f++]=n)}return c}function Q(a,b,c){switch(a){case"=":return b==c;case"^=":return b.match(K.g("^="+c)||K.s("^="+c,new RegExp("^"+P(c))));case"$=":return b.match(K.g("$="+c)||K.s("$="+c,new RegExp(P(c)+"$")));case"*=":return b.match(K.g(c)||K.s(c,new RegExp(P(c))));case"~=":return b.match(K.g("~="+c)||K.s("~="+c,new RegExp("(?:^|\\s+)"+P(c)+"(?:\\s+|$)")));case"|=":return b.match(K.g("|="+c)||K.s("|="+c,new RegExp("^"+P(c)+"(-|$)")))}return!1}function P(a){return J.g(a)||J.s(a,a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"))}function O(a){var c=[],d=a.pop(),e=M(d),f=e[1]||"*",g,i,j,k=a.length&&(h=a[0].match(x))?b.getElementById(h[1]):b;if(!k)return c;j=k.getElementsByTagName(f);for(g=0,i=j.length;g<i;g++)m=j[g],(r=N.apply(m,e))&&c.push(r);return c}function N(a,b,c,e,f,g,h){var j,k,l;if(b&&this.tagName.toLowerCase()!==b)return!1;if(c&&(j=c.match(v))&&j[1]!==this.id)return!1;if(c&&(q=c.match(w)))for(d=q.length;d--;){k=q[d].slice(1);if(!(I.g(k)||I.s(k,new RegExp("(^|\\s+)"+k+"(\\s+|$)"))).test(this.className))return!1}if(e&&!h){i=this.attributes;for(l in i)if(Object.prototype.hasOwnProperty.call(i,l)&&(i[l].name||l)==f)return this}if(e&&!Q(g,this.getAttribute(f)||"",h))return!1;return this}function M(a){return a.match(F)}function G(a){k=[];for(d=0,o=a.length;d<o;d++)k[d]=a[d];return k}var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=/#([\w\-]+)/,w=/\.[\w\-]+/g,x=/^#([\w\-]+$)/,y=/^\.([\w\-]+)$/,z=/^([\w\-]+)$/,A=/^(\w+)?\.([\w\-]+)$/,B=b.documentElement,C=/\s(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\])/,D=/^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,E=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,F=new RegExp(D.source+"("+E.source+")?"),H=function(){this.c={}};H.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b){return this.c[a]=b}};var I=new H,J=new H,K=new H,L=new H,S="compareDocumentPosition"in B?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in B?function(a,b){return b!==a&&b.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},W=function(){if(b.querySelector&&b.querySelectorAll)return U;return function(a,c){c=typeof c=="string"?W(c)[0]:c||b;if(!c)return[];var d,f=[],g=[],i;if(h=T(a,c))return h;if(h=a.match(A)){s=c.getElementsByTagName(h[1]||"*"),k=I.g(h[2])||I.s(h[2],new RegExp("(^|\\s+)"+h[2]+"(\\s+|$)"));for(d=s.length,e=0;d--;)k.test(s[d].className)&&(f[e++]=s[d]);return f}for(s=a.split(","),d=s.length;d--;)g[d]=R(s[d]);for(d=g.length;u=g[--d];){var j=u;if(c!==b){j=[];for(e=u.length;i=u[--e];)S(i,c)&&j.push(i)}f=f.concat(j)}return V(f)}}(),X=a.qwery;W.noConflict=function(){a.qwery=X;return this},a.qwery=W}(this,document)

0 comments on commit 19c01b6

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