taggedjs
Version:
tagged template reactive html
24 lines • 651 B
JavaScript
/** Looking for (class | style) followed by a period */
export function isSpecialAttr(attrName) {
if (attrName.startsWith('class.')) {
return 'class';
}
const specialAction = isSpecialAction(attrName);
if (specialAction !== false) {
return specialAction;
}
if (attrName.startsWith('style.')) {
return 'style';
}
return false;
}
export function isSpecialAction(attrName) {
switch (attrName) {
case 'autoselect':
return 'autoselect';
case 'autofocus':
return 'autofocus';
}
return false;
}
//# sourceMappingURL=isSpecialAttribute.function.js.map