Browse Source

[build] 0.8.2

Evan You 9 years ago
parent
commit
3a4a52102b
2 changed files with 4 additions and 5 deletions
  1. 3 4
      dist/vuex.js
  2. 1 1
      dist/vuex.min.js

+ 3 - 4
dist/vuex.js

@@ -1,5 +1,5 @@
 /*!
- * Vuex v0.8.0
+ * Vuex v0.8.2
  * (c) 2016 Evan You
  * Released under the MIT License.
  */
@@ -145,9 +145,8 @@
     var version = Number(Vue.version.split('.')[0]);
 
     if (version >= 2) {
-      Vue.mixin({
-        init: vuexInit
-      });
+      var usesInit = Vue.config._lifecycleHooks.indexOf('init') > -1;
+      Vue.mixin(usesInit ? { init: vuexInit } : { beforeCreate: vuexInit });
     } else {
       (function () {
         // override init and inject vuex init procedure

File diff suppressed because it is too large
+ 1 - 1
dist/vuex.min.js


Some files were not shown because too many files changed in this diff