Parcourir la source

[build] 0.7.1

Evan You il y a 9 ans
Parent
commit
8d636c1782
2 fichiers modifiés avec 3 ajouts et 6 suppressions
  1. 2 5
      dist/vuex.js
  2. 1 1
      dist/vuex.min.js

+ 2 - 5
dist/vuex.js

@@ -1,5 +1,5 @@
 /*!
- * Vuex v0.7.0
+ * Vuex v0.7.1
  * (c) 2016 Evan You
  * Released under the MIT License.
  */
@@ -130,11 +130,8 @@
       if (!hook) return;
       hook.emit('vuex:init', store);
       hook.on('vuex:travel-to-state', function (targetState) {
-        var currentState = store._vm._data;
         store._dispatching = true;
-        Object.keys(targetState).forEach(function (key) {
-          currentState[key] = targetState[key];
-        });
+        store._vm.state = targetState;
         store._dispatching = false;
       });
     },

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
dist/vuex.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff