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 86ed54d3_c196_44a8_ff61_3361e0ae76fd["bind-object-listeners.ts"] 02e43f4a_da65_7acd_5a98_0f017554a159["index"] 86ed54d3_c196_44a8_ff61_3361e0ae76fd --> 02e43f4a_da65_7acd_5a98_0f017554a159 81ed4f13_7d68_6e21_7425_cf978f68576f["vnode"] 86ed54d3_c196_44a8_ff61_3361e0ae76fd --> 81ed4f13_7d68_6e21_7425_cf978f68576f 8456d994_c5db_04c1_7466_74c5274c4133["index.ts"] 8456d994_c5db_04c1_7466_74c5274c4133 --> 86ed54d3_c196_44a8_ff61_3361e0ae76fd style 86ed54d3_c196_44a8_ff61_3361e0ae76fd 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 CoreRuntime 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: CoreRuntime, 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