From 02ffee4610a24481aab1cac7676da2a207e3684b Mon Sep 17 00:00:00 2001 From: John Resig Date: Sun, 4 Feb 2007 16:51:34 +0000 Subject: [PATCH] Fixed the ~ selector - it was selecting in the wrong direction. --- src/selector/selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selector/selector.js b/src/selector/selector.js index b8f0cb3..a21e579 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -85,7 +85,7 @@ jQuery.extend({ /^(\+)/, "jQuery.nth(a,2,'nextSibling')", /^(~)/, function(a){ var s = jQuery.sibling(a.parentNode.firstChild); - return s.slice(0, jQuery.inArray(a,s)); + return s.slice(jQuery.inArray(a,s) + 1); } ], -- 1.7.10.4