Code Review
/
portal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
nexus site path corrected
[portal.git]
/
ecomp-portal-FE
/
client
/
bower_components
/
jquery
/
src
/
traversing
/
var
/
dir.js
1
define( [
2
"../../core"
3
], function( jQuery ) {
4
5
return function( elem, dir, until ) {
6
var matched = [],
7
truncate = until !== undefined;
8
9
while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
10
if ( elem.nodeType === 1 ) {
11
if ( truncate && jQuery( elem ).is( until ) ) {
12
break;
13
}
14
matched.push( elem );
15
}
16
}
17
return matched;
18
};
19
20
} );