Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
listen for beforeCreate instead of init
Browse files Browse the repository at this point in the history
  • Loading branch information
cklmercer committed Aug 1, 2016
1 parent 8fbe127 commit d18e135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ function plugin(Vue) {
Vue.mixin({

/**
* The 'init' life-cycle hook.
* The 'beforeCreate' life-cycle hook.
*
* @return {void}
*/
init() {
beforeCreate() {
// 1.) Check for a store "option" on the component.
// 2.) Check for a store "object" on the root vue model.
if (typeof this.$options.store !== 'undefined' && typeof this.$root.store !== 'undefined') {
Expand Down

0 comments on commit d18e135

Please sign in to comment.