From bf5384c9ab2f37ce690d4549251dbcb38762b729 Mon Sep 17 00:00:00 2001 From: Dustin Diaz Date: Tue, 27 Mar 2012 11:07:38 -0700 Subject: [PATCH] - make closure compiler happy - bump package --- mobile/ender.js | 6 +++--- package.json | 2 +- qwery.js | 6 +++--- qwery.min.js | 2 +- src/ender.js | 6 +++--- src/qwery.js | 6 +++--- tests/phantom.js | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/mobile/ender.js b/mobile/ender.js index 98b1168..f1171cb 100644 --- a/mobile/ender.js +++ b/mobile/ender.js @@ -1,4 +1,4 @@ -!function (doc, $) { +(function (doc, $) { var q = require('qwery') $.pseudos = q.pseudos @@ -8,7 +8,7 @@ // rather than load-time since technically it's not a dependency and // can be loaded in any order // hence the lazy function re-definition - return ($._select = (function(b) { + return ($._select = (function (b) { try { b = require('bonzo') return function (s, r) { @@ -45,4 +45,4 @@ return false } }, true) -}(document, ender); +}(document, ender)); diff --git a/package.json b/package.json index 3f2518c..7f3ff02 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "qwery" , "description": "blazing fast CSS3 query selector engine" - , "version": "3.3.3" + , "version": "3.3.4" , "homepage": "https://github.com/ded/qwery" , "author": "Dustin Diaz (http://dustindiaz.com)" , "contributors": [ diff --git a/qwery.js b/qwery.js index e41b3e8..f24fc4e 100644 --- a/qwery.js +++ b/qwery.js @@ -5,11 +5,11 @@ * MIT License */ -!function (name, definition) { +(function (name, definition) { if (typeof module != 'undefined') module.exports = definition() else if (typeof define == 'function' && typeof define.amd == 'object') define(definition) else this[name] = definition() -}('qwery', function () { +})('qwery', function () { var doc = document , html = doc.documentElement , byClass = 'getElementsByClassName' @@ -365,4 +365,4 @@ qwery.pseudos = {} return qwery -}) +}); diff --git a/qwery.min.js b/qwery.min.js index 98303fb..168a85e 100644 --- a/qwery.min.js +++ b/qwery.min.js @@ -4,4 +4,4 @@ * copyright Dustin Diaz & Jacob Thornton 2011 * MIT License */ -!function(a,b){typeof module!="undefined"?module.exports=b():typeof define=="function"&&typeof define.amd=="object"?define(b):this[a]=b()}("qwery",function(){function C(){this.c={}}function H(a){return D.g(a)||D.s(a,"(^|\\s+)"+a+"(\\s+|$)",1)}function I(a,b){var c=0,d=a.length;for(;c~+]/,q=/^\s+|\s*([,\s\+\~>]|$)\s*/g,r=/[\s\>\+\~]/,s=/(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/,t=/([.*+?\^=!:${}()|\[\]\/\\])/g,u=/^(\*|[a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,v=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,w=/:([\w\-]+)(\(['"]?([^()]+)['"]?\))?/,x=new RegExp(l.source+"|"+n.source+"|"+m.source),y=new RegExp("("+r.source+")"+s.source,"g"),z=new RegExp(r.source+s.source),A=new RegExp(u.source+"("+v.source+")?"+"("+w.source+")?"),B={" ":function(a){return a&&a!==b&&a.parentNode},">":function(a,b){return a&&a.parentNode==b.parentNode&&a.parentNode},"~":function(a){return a&&a.previousSibling},"+":function(a,b,c,d){return a?(c=L(a))&&(d=L(b))&&c==d&&c:!1}};C.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b,c){return b=c?new RegExp(b):b,this.c[a]=b}};var D=new C,E=new C,F=new C,G=new C,$="compareDocumentPosition"in b?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in b?function(a,c){return c=c[h]===9||c==window?b:c,c!==a&&c.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},_=function(){var b=a.createElement("p");return(b.innerHTML='x')&&b.firstChild.getAttribute("href")!="#x"?function(a,b){return b==="class"?a.className:b==="href"||b==="src"?a.getAttribute(b,2):a.getAttribute(b)}:function(a,b){return a.getAttribute(b)}}(),ba=!!a[c],bb=a.querySelector&&a[e],bc=function(a,b){var c=[],d,f;try{return b[h]===9||!p.test(a)?K(b[e](a)):(I(d=a.split(","),Z(b,function(a,b){f=a[e](b),f.length==1?c[c.length]=f.item(0):f.length&&(c=c.concat(K(f)))})),d.length>1&&c.length>1?U(c):c)}catch(g){}return bd(a,b)},bd=function(a,b){var c=[],e,f,g,i,j,k;a=a.replace(q,"$1");if(f=a.match(o)){j=H(f[2]),e=b[d](f[1]||"*");for(g=0,i=e.length;g1&&c.length>1?U(c):c},be=function(a){typeof a[f]!="undefined"&&(i=a[f]?bb?bc:bd:bd)};return be({useNativeQSA:!0}),Y.configure=be,Y.uniq=U,Y.is=R,Y.pseudos={},Y}) \ No newline at end of file +(function(a,b){typeof module!="undefined"?module.exports=b():typeof define=="function"&&typeof define.amd=="object"?define(b):this[a]=b()})("qwery",function(){function C(){this.c={}}function H(a){return D.g(a)||D.s(a,"(^|\\s+)"+a+"(\\s+|$)",1)}function I(a,b){var c=0,d=a.length;for(;c~+]/,q=/^\s+|\s*([,\s\+\~>]|$)\s*/g,r=/[\s\>\+\~]/,s=/(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/,t=/([.*+?\^=!:${}()|\[\]\/\\])/g,u=/^(\*|[a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,v=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,w=/:([\w\-]+)(\(['"]?([^()]+)['"]?\))?/,x=new RegExp(l.source+"|"+n.source+"|"+m.source),y=new RegExp("("+r.source+")"+s.source,"g"),z=new RegExp(r.source+s.source),A=new RegExp(u.source+"("+v.source+")?"+"("+w.source+")?"),B={" ":function(a){return a&&a!==b&&a.parentNode},">":function(a,b){return a&&a.parentNode==b.parentNode&&a.parentNode},"~":function(a){return a&&a.previousSibling},"+":function(a,b,c,d){return a?(c=L(a))&&(d=L(b))&&c==d&&c:!1}};C.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b,c){return b=c?new RegExp(b):b,this.c[a]=b}};var D=new C,E=new C,F=new C,G=new C,$="compareDocumentPosition"in b?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in b?function(a,c){return c=c[h]===9||c==window?b:c,c!==a&&c.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},_=function(){var b=a.createElement("p");return(b.innerHTML='x')&&b.firstChild.getAttribute("href")!="#x"?function(a,b){return b==="class"?a.className:b==="href"||b==="src"?a.getAttribute(b,2):a.getAttribute(b)}:function(a,b){return a.getAttribute(b)}}(),ba=!!a[c],bb=a.querySelector&&a[e],bc=function(a,b){var c=[],d,f;try{return b[h]===9||!p.test(a)?K(b[e](a)):(I(d=a.split(","),Z(b,function(a,b){f=a[e](b),f.length==1?c[c.length]=f.item(0):f.length&&(c=c.concat(K(f)))})),d.length>1&&c.length>1?U(c):c)}catch(g){}return bd(a,b)},bd=function(a,b){var c=[],e,f,g,i,j,k;a=a.replace(q,"$1");if(f=a.match(o)){j=H(f[2]),e=b[d](f[1]||"*");for(g=0,i=e.length;g1&&c.length>1?U(c):c},be=function(a){typeof a[f]!="undefined"&&(i=a[f]?bb?bc:bd:bd)};return be({useNativeQSA:!0}),Y.configure=be,Y.uniq=U,Y.is=R,Y.pseudos={},Y}) \ No newline at end of file diff --git a/src/ender.js b/src/ender.js index 98b1168..f1171cb 100644 --- a/src/ender.js +++ b/src/ender.js @@ -1,4 +1,4 @@ -!function (doc, $) { +(function (doc, $) { var q = require('qwery') $.pseudos = q.pseudos @@ -8,7 +8,7 @@ // rather than load-time since technically it's not a dependency and // can be loaded in any order // hence the lazy function re-definition - return ($._select = (function(b) { + return ($._select = (function (b) { try { b = require('bonzo') return function (s, r) { @@ -45,4 +45,4 @@ return false } }, true) -}(document, ender); +}(document, ender)); diff --git a/src/qwery.js b/src/qwery.js index bf2d29e..136be23 100644 --- a/src/qwery.js +++ b/src/qwery.js @@ -1,8 +1,8 @@ -!function (name, definition) { +(function (name, definition) { if (typeof module != 'undefined') module.exports = definition() else if (typeof define == 'function' && typeof define.amd == 'object') define(definition) else this[name] = definition() -}('qwery', function () { +})('qwery', function () { var doc = document , html = doc.documentElement , byClass = 'getElementsByClassName' @@ -358,4 +358,4 @@ qwery.pseudos = {} return qwery -}) +}); diff --git a/tests/phantom.js b/tests/phantom.js index eba747b..140160c 100644 --- a/tests/phantom.js +++ b/tests/phantom.js @@ -1,5 +1,5 @@ var page = new WebPage() - , url = "http://localhost:3000/tests/" + , url = "http://localhost:3000/tests/index.html" function waitFor(testFx, onReady, timeOutMillis) { var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 5000