Skip to content

Commit

Permalink
Fixed bad function call on subscription items preventing context binding
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrumwhite committed Oct 17, 2018
1 parent 2291ed9 commit 44e1a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/vuex-subscriptions-plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/vuex-subscriptions-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
if (this.$options.subscriptions) {
this.__subscriptionPluginUnsubscribe = this.$store.subscribe((commitObject, state) => {
let subscription = this.$options.subscriptions[commitObject.type];
typeof subscription === 'function' && subscription(commitObject, state).call(this, commitObject, state);
typeof subscription === 'function' && subscription.call(this, commitObject, state);
});
}
},
Expand Down

0 comments on commit 44e1a4c

Please sign in to comment.