Commit 609dec9a authored by John Resig's avatar John Resig

Fixed .next() and .prev().

parent 694becea
...@@ -1818,8 +1818,8 @@ new function() { ...@@ -1818,8 +1818,8 @@ new function() {
jQuery.each({ jQuery.each({
parent: "a.parentNode", parent: "a.parentNode",
parents: "jQuery.parents(a)", parents: "jQuery.parents(a)",
next: "jQuery.nth(a,1,'nextSibling')", next: "jQuery.nth(a,2,'nextSibling')",
prev: "jQuery.nth(a,1,'previousSibling')", prev: "jQuery.nth(a,2,'previousSibling')",
siblings: "jQuery.sibling(a.parentNode.firstChild,a)", siblings: "jQuery.sibling(a.parentNode.firstChild,a)",
children: "jQuery.sibling(a.firstChild)" children: "jQuery.sibling(a.firstChild)"
}, function(i,n){ }, function(i,n){
......
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