Skip to content
Permalink
Browse files
Added fix for :nth-child(n).
  • Loading branch information
jeresig committed Jun 29, 2007
1 parent 7b9d825 commit 88c88f0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;

0 comments on commit 88c88f0

Please sign in to comment.