From e457edbcf4832431242941d0c5e1f67afd9439a9 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Thu, 1 Nov 2007 19:06:02 +0000 Subject: [PATCH] Simplified the bitmask in Element#descendantOf. --- src/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom.js b/src/dom.js index 17161eb..086cf71 100644 --- a/src/dom.js +++ b/src/dom.js @@ -360,7 +360,7 @@ Element.Methods = { element = $(element), ancestor = $(ancestor); if (element.compareDocumentPosition) - return (element.compareDocumentPosition(ancestor) & 24) === 8; + return (element.compareDocumentPosition(ancestor) & 8) === 8; if (element.sourceIndex) { var e = element.sourceIndex, a = ancestor.sourceIndex,