bindObjectListeners() — vue Function Reference
Architecture documentation for the bindObjectListeners() function in bind-object-listeners.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD f2916332_69f6_f4f0_d804_c78b58eb602a["bindObjectListeners()"] aead5d8c_e511_8b6e_9c82_8aff95acbaa8["bind-object-listeners.ts"] f2916332_69f6_f4f0_d804_c78b58eb602a -->|defined in| aead5d8c_e511_8b6e_9c82_8aff95acbaa8 style f2916332_69f6_f4f0_d804_c78b58eb602a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/render-helpers/bind-object-listeners.ts lines 4–18
export function bindObjectListeners(data: any, value: any): VNodeData {
if (value) {
if (!isPlainObject(value)) {
__DEV__ && warn('v-on without argument expects an Object value', this)
} else {
const on = (data.on = data.on ? extend({}, data.on) : {})
for (const key in value) {
const existing = on[key]
const ours = value[key]
on[key] = existing ? [].concat(existing, ours) : ours
}
}
}
return data
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindObjectListeners() do?
bindObjectListeners() is a function in the vue codebase, defined in src/core/instance/render-helpers/bind-object-listeners.ts.
Where is bindObjectListeners() defined?
bindObjectListeners() is defined in src/core/instance/render-helpers/bind-object-listeners.ts at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free