MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / handleAttributes

Function handleAttributes

tech-study.js:1448–1457  ·  view source on GitHub ↗

* @description 处理svg属性 * @param ele * @param attrs

(ele, attrs, subscribe, unsubscribe)

Source from the content-addressed store, hash-verified

1446 * @param attrs
1447 */
1448function handleAttributes(ele, attrs, subscribe, unsubscribe) {
1449 // 属性存在
1450 if (attrs) {
1451 // attrs属性设置
1452 for (const key in attrs) {
1453 // 处理普通属性
1454 handleAttribute(ele, key, attrs[key], subscribe, unsubscribe);
1455 }
1456 }
1457}
1458/**
1459 * @description 处理事件选项
1460 */

Callers 2

createElementNodeFunction · 0.70
createNSElementNodeFunction · 0.70

Calls 1

handleAttributeFunction · 0.70

Tested by

no test coverage detected