Added fix for :nth-child(n).
This commit is contained in:
parent
7b9d825890
commit
88c88f0704
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue