Initial commit
This commit is contained in:
commit
b953a6c158
326 changed files with 76065 additions and 0 deletions
20
bower_components/jquery/src/traversing/var/dir.js
vendored
Normal file
20
bower_components/jquery/src/traversing/var/dir.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
define( [
|
||||
"../../core"
|
||||
], function( jQuery ) {
|
||||
|
||||
return function( elem, dir, until ) {
|
||||
var matched = [],
|
||||
truncate = until !== undefined;
|
||||
|
||||
while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
|
||||
if ( elem.nodeType === 1 ) {
|
||||
if ( truncate && jQuery( elem ).is( until ) ) {
|
||||
break;
|
||||
}
|
||||
matched.push( elem );
|
||||
}
|
||||
}
|
||||
return matched;
|
||||
};
|
||||
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue