Download node_modules/jquery/src/selector/contains.js from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/selector/contains.js
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/node_modules/jquery/src/selector/contains.js
-
curl -L -o contains.js https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/selector/contains.js
418 Bytes
| define( [ | |
| "../core" | |
| ], function( jQuery ) { | |
| ; | |
| // Note: an element does not contain itself | |
| jQuery.contains = function( a, b ) { | |
| var bup = b && b.parentNode; | |
| return a === bup || !!( bup && bup.nodeType === 1 && ( | |
| // Support: IE 9 - 11+ | |
| // IE doesn't have `contains` on SVG. | |
| a.contains ? | |
| a.contains( bup ) : | |
| a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 | |
| ) ); | |
| }; | |
| } ); | |