repo.or.cz
/
jquery.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Manipulation: Support $el.html(selfRemovingScript) (#5378)
[jquery.git]
/
src
/
traversing
/
var
/
siblings.js
blob
3b908d7fdc7d2a2751a13cef7c437002abd11d0d
1
export function siblings( n, elem ) {
2
var matched = [];
3
4
for ( ; n; n = n.nextSibling ) {
5
if ( n.nodeType === 1 && n !== elem ) {
6
matched.push( n );
7
}
8
}
9
10
return matched;
11
}