Skip to content

Commit 1b4e078

Browse files
committed
vua to vue
1 parent f5f262c commit 1b4e078

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-vue-connect",
3-
"version": "0.7.8",
3+
"version": "1.0.0",
44
"description": "Vue Redux binding higher order component",
55
"author": "Sazzad Hossain Khan",
66
"contributor": "Sazzad Hossain Khan",

src/connect.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function getActions(component, mapActionsToProps) {
2727
function getProps(component) {
2828
let props = {};
2929
const attrs = getAttrs(component);
30-
const stateNames = component.vuaReduxStateNames;
31-
const actionNames = component.vuaReduxActionNames;
30+
const stateNames = component.vueReduxStateNames;
31+
const actionNames = component.vueReduxActionNames;
3232

3333
for (let ii = 0; ii < stateNames.length; ii++) {
3434
props[stateNames[ii]] = component[stateNames[ii]];
@@ -92,18 +92,18 @@ export default function connect(mapStateToProps, mapActionsToProps) {
9292
return {
9393
...state,
9494
...actions,
95-
vuaReduxStateNames: stateNames,
96-
vuaReduxActionNames: actionNames
95+
vueReduxStateNames: stateNames,
96+
vueReduxActionNames: actionNames
9797
};
9898
},
9999

100100
created() {
101101
const store = getStore(this);
102102

103-
this.vuaReduxUnsubscribe = store.subscribe(() => {
103+
this.vueReduxUnsubscribe = store.subscribe(() => {
104104
const state = getStates(this, mapStateToProps);
105105
const stateNames = Object.keys(state);
106-
this.vuaReduxStateNames = stateNames;
106+
this.vueReduxStateNames = stateNames;
107107

108108
for (let ii = 0; ii < stateNames.length; ii++) {
109109
this[stateNames[ii]] = state[stateNames[ii]];
@@ -112,7 +112,7 @@ export default function connect(mapStateToProps, mapActionsToProps) {
112112
},
113113

114114
beforeDestroy() {
115-
this.vuaReduxUnsubscribe();
115+
this.vueReduxUnsubscribe();
116116
},
117117

118118
methods: children.methods

0 commit comments

Comments
 (0)