This commit is contained in:
lalBi94
2023-03-05 13:23:23 +01:00
commit 7bc56c09b5
14034 changed files with 1834369 additions and 0 deletions

15
node_modules/riot/esm/utils/dom.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
/* Riot WIP, @license MIT */
import { IS_DIRECTIVE } from '@riotjs/util';
import { get } from 'bianco.attr';
/**
* Get the tag name of any DOM node
* @param {HTMLElement} element - DOM node we want to inspect
* @returns {string} name to identify this dom node in riot
*/
function getName(element) {
return get(element, IS_DIRECTIVE) || element.tagName.toLowerCase();
}
export { getName };