File tree 4 files changed +6
-4380
lines changed 4 files changed +6
-4380
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ package-lock.json
5
5
dist
6
6
lib
7
7
.vscode
8
+ .idea
8
9
.rpt2_cache
9
10
TODO.md
Original file line number Diff line number Diff line change 40
40
"rollup-plugin-replace" : " ^2.2.0" ,
41
41
"rollup-plugin-terser" : " ^4.0.4" ,
42
42
"rollup-plugin-typescript2" : " ^0.21.0" ,
43
- "typescript" : " ^3.4.5"
43
+ "typescript" : " ^3.4.5" ,
44
+ "vue" : " ^2.6.10"
44
45
},
45
46
"peerDependencies" : {
46
47
"vue" : " ^2.0.0"
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ import { value } from './functions/state';
7
7
8
8
export function mixin ( Vue : VueConstructor ) {
9
9
Vue . mixin ( {
10
- created : vuexInit ,
10
+ created : functionApiInit ,
11
11
} ) ;
12
12
13
13
/**
14
14
* Vuex init hook, injected into each instances init hooks list.
15
15
*/
16
- function vuexInit ( this : any ) {
16
+ function functionApiInit ( this : any ) {
17
17
const vm = this ;
18
18
const { setup } = vm . $options ;
19
19
if ( ! setup ) {
@@ -58,8 +58,7 @@ export function mixin(Vue: VueConstructor) {
58
58
59
59
Object . keys ( binding ) . forEach ( name => {
60
60
let bindingValue = binding [ name ] ;
61
- if ( bindingValue === undefined )
62
- return ;
61
+ if ( bindingValue === undefined ) return ;
63
62
// make plain value reactive
64
63
if ( ! isWrapper ( bindingValue ) && ! isFunction ( bindingValue ) && ! Object . isFrozen ( bindingValue ) ) {
65
64
bindingValue = value ( bindingValue ) ;
You can’t perform that action at this time.
0 commit comments