Browse Source

[build] 0.7.1

Evan You 9 years ago
parent
commit
8d636c1782
2 changed files with 3 additions and 6 deletions
  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
  * (c) 2016 Evan You
  * Released under the MIT License.
  * Released under the MIT License.
  */
  */
@@ -130,11 +130,8 @@
       if (!hook) return;
       if (!hook) return;
       hook.emit('vuex:init', store);
       hook.emit('vuex:init', store);
       hook.on('vuex:travel-to-state', function (targetState) {
       hook.on('vuex:travel-to-state', function (targetState) {
-        var currentState = store._vm._data;
         store._dispatching = true;
         store._dispatching = true;
-        Object.keys(targetState).forEach(function (key) {
-          currentState[key] = targetState[key];
-        });
+        store._vm.state = targetState;
         store._dispatching = false;
         store._dispatching = false;
       });
       });
     },
     },

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