Commit 88c88f07 authored by John Resig's avatar John Resig

Added fix for :nth-child(n).

parent 7b9d8258
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment