Oops, order of operations.
authorJohn Resig <jeresig@gmail.com>
Mon, 5 Jan 2009 22:02:20 +0000 (22:02 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 5 Jan 2009 22:02:20 +0000 (22:02 +0000)
src/selector.js

index 8ade53b..abe7562 100644 (file)
@@ -778,7 +778,7 @@ function dirCheck( dir, cur, doneName, checkSet, nodeCheck ) {
 var contains = document.compareDocumentPosition ?  function(a, b){
        return a.compareDocumentPosition(b) & 16;
 } : function(a, b){
-       return a !== b && a.contains ? a.contains(b) : true;
+       return a !== b && (a.contains ? a.contains(b) : true);
 };
 
 // EXPOSE