Skip to content
Permalink
Browse files
Fixed the ~ selector - it was selecting in the wrong direction.
  • Loading branch information
jeresig committed Feb 4, 2007
1 parent fd0f42b commit 02ffee4610a24481aab1cac7676da2a207e3684b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);
}
],

0 comments on commit 02ffee4

Please sign in to comment.