bind-object-listeners.ts — vue Source File
Architecture documentation for bind-object-listeners.ts, a typescript file in the vue codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR aead5d8c_e511_8b6e_9c82_8aff95acbaa8["bind-object-listeners.ts"] 90a2398a_1498_3263_c62e_0c064dd2c9b3["index"] aead5d8c_e511_8b6e_9c82_8aff95acbaa8 --> 90a2398a_1498_3263_c62e_0c064dd2c9b3 ba925ef2_b0f4_efe3_c23d_fe293c46b2c1["vnode"] aead5d8c_e511_8b6e_9c82_8aff95acbaa8 --> ba925ef2_b0f4_efe3_c23d_fe293c46b2c1 8ffc8513_97a6_feaa_6bc2_e31c949e66cd["index.ts"] 8ffc8513_97a6_feaa_6bc2_e31c949e66cd --> aead5d8c_e511_8b6e_9c82_8aff95acbaa8 style aead5d8c_e511_8b6e_9c82_8aff95acbaa8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { warn, extend, isPlainObject } from 'core/util/index'
import type { VNodeData } from 'types/vnode'
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
Functions
Dependencies
- index
- vnode
Imported By
Source
Frequently Asked Questions
What does bind-object-listeners.ts do?
bind-object-listeners.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, Instance subdomain.
What functions are defined in bind-object-listeners.ts?
bind-object-listeners.ts defines 1 function(s): bindObjectListeners.
What does bind-object-listeners.ts depend on?
bind-object-listeners.ts imports 2 module(s): index, vnode.
What files import bind-object-listeners.ts?
bind-object-listeners.ts is imported by 1 file(s): index.ts.
Where is bind-object-listeners.ts in the architecture?
bind-object-listeners.ts is located at src/core/instance/render-helpers/bind-object-listeners.ts (domain: VueCore, subdomain: Instance, directory: src/core/instance/render-helpers).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free