Commit 02ffee46 authored by John Resig's avatar John Resig

Fixed the ~ selector - it was selecting in the wrong direction.

parent fd0f42bf
......@@ -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);
}
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment