File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ export const htmlloader = (
60
60
}
61
61
62
62
if ( node . __props instanceof HTMLElement ) {
63
- let cpy = Object . assign ( { } , properties ) ;
63
+ let cpy = Object . assign ( { } , node ) ;
64
64
let keys = Object . getOwnPropertyNames ( cpy ) ;
65
65
for ( const k of keys ) {
66
66
if ( ! ( k in cpy ) ) continue ;
67
- if ( k === 'style' && typeof properties [ k ] === 'object' ) { Object . assign ( node . __props . style , cpy [ k ] ) ; }
67
+ if ( k === 'style' && typeof node [ k ] === 'object' ) { Object . assign ( node . __props . style , cpy [ k ] ) ; }
68
68
else node . __props [ k ] = cpy [ k ] ;
69
69
}
70
70
Original file line number Diff line number Diff line change @@ -75,11 +75,11 @@ export const wchtmlloader = (
75
75
76
76
node . __props = document . createElement ( node . tagName ) ;
77
77
78
- let cpy = Object . assign ( { } , properties ) ;
78
+ let cpy = Object . assign ( { } , node ) ;
79
79
let keys = Object . getOwnPropertyNames ( cpy ) ;
80
80
for ( const k of keys ) {
81
81
if ( ! ( k in cpy ) ) continue ;
82
- if ( k === 'style' && typeof properties [ k ] === 'object' ) { Object . assign ( node . __props . style , cpy [ k ] ) ; }
82
+ if ( k === 'style' && typeof node [ k ] === 'object' ) { Object . assign ( node . __props . style , cpy [ k ] ) ; }
83
83
else node . __props [ k ] = cpy [ k ] ;
84
84
}
85
85
@@ -92,7 +92,7 @@ export const wchtmlloader = (
92
92
node . __proxyObject ( node . __props ) ;
93
93
94
94
} else if ( node . __props instanceof HTMLElement ) {
95
- let cpy = Object . assign ( { } , properties ) ;
95
+ let cpy = Object . assign ( { } , node ) ;
96
96
let keys = Object . getOwnPropertyNames ( cpy ) ;
97
97
for ( const k of keys ) {
98
98
if ( ! ( k in cpy ) ) continue ;
You can’t perform that action at this time.
0 commit comments