mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added fix for :nth-child(n).
This commit is contained in:
parent
7b9d825890
commit
88c88f0704
@ -377,7 +377,7 @@ jQuery.extend({
|
||||
var add = false;
|
||||
|
||||
if ( first == 1 ) {
|
||||
if ( node.nodeIndex == last )
|
||||
if ( last == 0 || node.nodeIndex == last )
|
||||
add = true;
|
||||
} else if ( (node.nodeIndex + last) % first == 0 )
|
||||
add = true;
|
||||
|
Loading…
Reference in New Issue
Block a user