mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed the ~ selector - it was selecting in the wrong direction.
This commit is contained in:
parent
fd0f42bf5c
commit
02ffee4610
@ -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);
|
||||
}
|
||||
],
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user