Skip to content

Commit 2cd0d20

Browse files
committed
vdom.VNode: wrong attributes type #6796
1 parent 10e582c commit 2cd0d20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vdom/VNode.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class VNode {
88
*/
99
constructor(config) {
1010
/**
11-
* @member {Array} attributes=[]
11+
* @member {Object} attributes={}
1212
*/
1313

1414
/**
@@ -46,7 +46,7 @@ class VNode {
4646
*/
4747

4848
Object.assign(this, {
49-
attributes: config.attributes || [],
49+
attributes: config.attributes || {},
5050
childNodes: config.childNodes || [],
5151
className : config.className || [],
5252
id : config.id || Neo.getId('vnode'),

0 commit comments

Comments
 (0)