diff options
author | John Resig <jeresig@gmail.com> | 2007-02-04 16:51:34 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-02-04 16:51:34 +0000 |
commit | 02ffee4610a24481aab1cac7676da2a207e3684b (patch) | |
tree | 0d476e8f67727fdf1827ccf1dedf529ab76126d0 /src/selector/selector.js | |
parent | fd0f42bf5cf18d311db78680e4d28bc6ff1b016c (diff) | |
download | jquery-02ffee4610a24481aab1cac7676da2a207e3684b.tar.gz jquery-02ffee4610a24481aab1cac7676da2a207e3684b.zip |
Fixed the ~ selector - it was selecting in the wrong direction.
Diffstat (limited to 'src/selector/selector.js')
-rw-r--r-- | src/selector/selector.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js index b8f0cb301..a21e5794c 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); } ], |