File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { VueConstructor } from 'vue';
2
2
import { SetupContext } from './types/vue' ;
3
3
import { isWrapper } from './wrappers' ;
4
4
import { setCurrentVM } from './runtimeContext' ;
5
- import { isPlainObject , assert , proxy , isFunction } from './utils' ;
5
+ import { isPlainObject , assert , proxy } from './utils' ;
6
6
import { value } from './functions/state' ;
7
7
8
8
export function mixin ( Vue : VueConstructor ) {
@@ -58,17 +58,12 @@ export function mixin(Vue: VueConstructor) {
58
58
59
59
Object . keys ( binding ) . forEach ( name => {
60
60
let bindingValue = binding [ name ] ;
61
- if ( bindingValue === undefined ) return ;
62
61
// make plain value reactive
63
- if ( ! isWrapper ( bindingValue ) && ! isFunction ( bindingValue ) && ! Object . isFrozen ( bindingValue ) ) {
62
+ if ( ! isWrapper ( bindingValue ) ) {
64
63
bindingValue = value ( bindingValue ) ;
65
64
}
66
65
// bind to vm
67
- if ( isWrapper ( bindingValue ) ) {
68
- bindingValue . setVmProperty ( vm , name ) ;
69
- } else {
70
- vm [ name ] = bindingValue ;
71
- }
66
+ bindingValue . setVmProperty ( vm , name ) ;
72
67
} ) ;
73
68
}
74
69
You can’t perform that action at this time.
0 commit comments