git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd0f42b
)
Fixed the ~ selector - it was selecting in the wrong direction.
author
John Resig
<jeresig@gmail.com>
Sun, 4 Feb 2007 16:51:34 +0000
(16:51 +0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 4 Feb 2007 16:51:34 +0000
(16:51 +0000)
src/selector/selector.js
patch
|
blob
|
history
diff --git
a/src/selector/selector.js
b/src/selector/selector.js
index
b8f0cb3
..
a21e579
100644
(file)
--- a/
src/selector/selector.js
+++ b/
src/selector/selector.js
@@
-85,7
+85,7
@@
jQuery.extend({
/^(\+)/, "jQuery.nth(a,2,'nextSibling')",
/^(~)/, function(a){
var s = jQuery.sibling(a.parentNode.firstChild);
- return s.slice(0, jQuery.inArray(a,s));
+ return s.slice(jQuery.inArray(a,s) + 1);
}
],