Added .prevAll() and .nextAll() functionality.
This commit is contained in:
parent
b59c94d5c2
commit
052aa1445a
2 changed files with 6 additions and 4 deletions
|
@ -400,12 +400,12 @@ jQuery.extend({
|
|||
return { r: r, t: t };
|
||||
},
|
||||
|
||||
parents: function( elem ){
|
||||
dir: function( elem, dir ){
|
||||
var matched = [];
|
||||
var cur = elem.parentNode;
|
||||
var cur = elem[dir];
|
||||
while ( cur && cur != document ) {
|
||||
matched.push( cur );
|
||||
cur = cur.parentNode;
|
||||
cur = cur[dir];
|
||||
}
|
||||
return matched;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue