aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-09 15:44:24 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-09 15:44:24 +0000
commit609dec9a78ac98e69b67a73989d8437f67c6d33a (patch)
treec9f09d7bb704fbd5da59ef4f1e0f7c060e3a94be
parent694becea3898f060ed815cf864ea1d4e87a800fb (diff)
downloadjquery-609dec9a78ac98e69b67a73989d8437f67c6d33a.tar.gz
jquery-609dec9a78ac98e69b67a73989d8437f67c6d33a.zip
Fixed .next() and .prev().
-rw-r--r--src/jquery/jquery.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index ee65edbb1..4a05ee537 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -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){