bindObjectListeners() — vue Function Reference
Architecture documentation for the bindObjectListeners() function in bind-object-listeners.ts from the vue codebase.
Entity Profile
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
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free