Permalink
Browse files

fix incorrect var handling

  • Loading branch information...
amccollum committed Oct 3, 2012
1 parent 2587254 commit addab28b60aa9ee217cfe9be63d58eb589b133c1
Showing with 8 additions and 7 deletions.
  1. +3 −2 lib/sel.js
  2. +1 −1 package.json
  3. +1 −1 src/sel/matching.coffee
  4. +2 −2 src/sel/sel.coffee
  5. +1 −1 src/sel/select.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "sel",
- "version": "0.7.4",
+ "version": "0.7.5",
"description": "Small, fast CSS4 selector library",
"keywords": ["ender", "css", "css4", "selector engine", "jquery", "sizzle"],
"author": "Andrew McCollum <amccollum@gmail.com>",
View
@@ -5,7 +5,7 @@
if matchesSelector and (matchesDisconnected or els.every((el) -> el.document and el.document.nodeType != 11))
try
return els.filter((el) -> matchesSelector.call(el, selector))
- catch e
+ catch err
e = parse(selector)
if not e.child and not e.children and not e.pseudos
View
@@ -754,7 +754,7 @@
if not matchRoots and not combinatorPattern.exec(selector)
try
return roots.map((root) -> qSA(selector, root)).reduce(extend, [])
- catch e
+ catch err
return evaluate(parse(selector), roots, matchRoots)
@@ -815,7 +815,7 @@
if matchesSelector and (matchesDisconnected or els.every((el) -> el.document and el.document.nodeType != 11))
try
return els.filter((el) -> matchesSelector.call(el, selector))
- catch e
+ catch err
e = parse(selector)
if not e.child and not e.children and not e.pseudos
View
@@ -44,7 +44,7 @@
if not matchRoots and not combinatorPattern.exec(selector)
try
return roots.map((root) -> qSA(selector, root)).reduce(extend, [])
- catch e
+ catch err
return evaluate(parse(selector), roots, matchRoots)

0 comments on commit addab28

Please sign in to comment.