]> source.dussan.org Git - jquery.git/commitdiff
Fixed .next() and .prev().
authorJohn Resig <jeresig@gmail.com>
Tue, 9 Jan 2007 15:44:24 +0000 (15:44 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 9 Jan 2007 15:44:24 +0000 (15:44 +0000)
src/jquery/jquery.js

index ee65edbb1f8dd857b43d55a4ec69b82cfbe16bee..4a05ee537f68fb89258929a711ce69dff286f313 100644 (file)
@@ -1818,8 +1818,8 @@ new function() {
 jQuery.each({
        parent: "a.parentNode",
        parents: "jQuery.parents(a)",
-       next: "jQuery.nth(a,1,'nextSibling')",
-       prev: "jQuery.nth(a,1,'previousSibling')",
+       next: "jQuery.nth(a,2,'nextSibling')",
+       prev: "jQuery.nth(a,2,'previousSibling')",
        siblings: "jQuery.sibling(a.parentNode.firstChild,a)",
        children: "jQuery.sibling(a.firstChild)"
 }, function(i,n){