@@ -27,8 +27,8 @@ function getActions(component, mapActionsToProps) {
2727function 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