getAndRemoveAttr() — vue Function Reference
Architecture documentation for the getAndRemoveAttr() function in helpers.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3["getAndRemoveAttr()"] 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e["getBindingAttr()"] 2e03f8d2_4a5a_f1cd_1d7b_db95ba63549e -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 4988d0ac_656f_889f_8348_32957dd0c8f3["processPre()"] 4988d0ac_656f_889f_8348_32957dd0c8f3 -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 327c11d5_a4b9_58c5_30dd_58c353557eea["processFor()"] 327c11d5_a4b9_58c5_30dd_58c353557eea -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 b2049aaa_7861_a0af_b6db_bf0667912dfe["processIf()"] b2049aaa_7861_a0af_b6db_bf0667912dfe -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 999c135f_95ed_08af_75f8_4800544405e2["processOnce()"] 999c135f_95ed_08af_75f8_4800544405e2 -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 5b174fba_1f83_94cc_774e_5234231c01dc["processSlotContent()"] 5b174fba_1f83_94cc_774e_5234231c01dc -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 1357d3a3_07b9_6531_f9bb_13cc933ea47d["processComponent()"] 1357d3a3_07b9_6531_f9bb_13cc933ea47d -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 b99b1c17_88bd_b28b_f216_7b2ce17de916["transformNode()"] b99b1c17_88bd_b28b_f216_7b2ce17de916 -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 5266d1ae_e943_1c9a_9925_9c539b8a7a9b["preTransformNode()"] 5266d1ae_e943_1c9a_9925_9c539b8a7a9b -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 6758f672_6a56_f76d_7ea5_63af7382caff["transformNode()"] 6758f672_6a56_f76d_7ea5_63af7382caff -->|calls| b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 style b54f5bfb_1a4e_430d_f7d5_41f81c9a1ab3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/helpers.ts lines 201–220
export function getAndRemoveAttr(
el: ASTElement,
name: string,
removeFromMap?: boolean
): string | undefined {
let val
if ((val = el.attrsMap[name]) != null) {
const list = el.attrsList
for (let i = 0, l = list.length; i < l; i++) {
if (list[i].name === name) {
list.splice(i, 1)
break
}
}
}
if (removeFromMap) {
delete el.attrsMap[name]
}
return val
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getAndRemoveAttr() do?
getAndRemoveAttr() is a function in the vue codebase.
What calls getAndRemoveAttr()?
getAndRemoveAttr() is called by 10 function(s): getBindingAttr, preTransformNode, processComponent, processFor, processIf, processOnce, processPre, processSlotContent, and 2 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free