File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { resolveSlots } from '../instance/render-helpers/resolve-slots'
8
8
import {
9
9
isDef ,
10
10
camelize ,
11
+ emptyObject ,
11
12
validateProp
12
13
} from '../util/index'
13
14
@@ -22,7 +23,7 @@ export function createFunctionalComponent (
22
23
const propOptions = Ctor . options . props
23
24
if ( isDef ( propOptions ) ) {
24
25
for ( const key in propOptions ) {
25
- props [ key ] = validateProp ( key , propOptions , propsData || { } )
26
+ props [ key ] = validateProp ( key , propOptions , propsData || emptyObject )
26
27
}
27
28
} else {
28
29
if ( isDef ( data . attrs ) ) mergeProps ( props , data . attrs )
@@ -37,7 +38,7 @@ export function createFunctionalComponent (
37
38
props,
38
39
children,
39
40
parent : context ,
40
- listeners : data . on || { } ,
41
+ listeners : data . on || emptyObject ,
41
42
injections : resolveInject ( Ctor . options . inject , context ) ,
42
43
slots : ( ) => resolveSlots ( children , context )
43
44
} )
You can’t perform that action at this time.
0 commit comments