Download node_modules/jquery/src/traversing/var/dir.js from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/traversing/var/dir.js
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/node_modules/jquery/src/traversing/var/dir.js
-
curl -L -o dir.js https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/traversing/var/dir.js
371 Bytes
| 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; | |
| }; | |
| } ); | |