match[4] is already saved in check - thanks Balazs.
authorJohn Resig <jeresig@gmail.com>
Mon, 9 Feb 2009 15:01:23 +0000 (15:01 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 9 Feb 2009 15:01:23 +0000 (15:01 +0000)
src/selector.js

index d580c5a..3dc8765 100644 (file)
@@ -573,7 +573,7 @@ var Expr = Sizzle.selectors = {
                                value.indexOf(check) >= 0 :
                                type === "~=" ?
                                (" " + value + " ").indexOf(check) >= 0 :
-                               !match[4] ?
+                               !check ?
                                result :
                                type === "!=" ?
                                value != check :