File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 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'
88import {
99 isDef ,
1010 camelize ,
11+ emptyObject ,
1112 validateProp
1213} from '../util/index'
1314
@@ -22,7 +23,7 @@ export function createFunctionalComponent (
2223 const propOptions = Ctor . options . props
2324 if ( isDef ( propOptions ) ) {
2425 for ( const key in propOptions ) {
25- props [ key ] = validateProp ( key , propOptions , propsData || { } )
26+ props [ key ] = validateProp ( key , propOptions , propsData || emptyObject )
2627 }
2728 } else {
2829 if ( isDef ( data . attrs ) ) mergeProps ( props , data . attrs )
@@ -37,7 +38,7 @@ export function createFunctionalComponent (
3738 props,
3839 children,
3940 parent : context ,
40- listeners : data . on || { } ,
41+ listeners : data . on || emptyObject ,
4142 injections : resolveInject ( Ctor . options . inject , context ) ,
4243 slots : ( ) => resolveSlots ( children , context )
4344 } )
You can’t perform that action at this time.
0 commit comments