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