Skip to content

Commit c76aac8

Browse files
committed
connect improved
1 parent 7c2ce6d commit c76aac8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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": "vua-redux",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "vue redux binding higher order component",
55
"author": "Nadim Tuhin",
66
"repository": {

src/connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function getStore(component) {
88
}
99

1010
function getAttrs(component) {
11-
return component.$parent._vnode.data.attrs;
11+
return component._self.$options._parentVnode.data.attrs;
1212
}
1313

1414
function getStates(component, mapStateToProps) {

0 commit comments

Comments
 (0)