Kaynağa Gözat

[build] 0.7.1

Evan You 9 yıl önce
ebeveyn
işleme
8d636c1782
2 değiştirilmiş dosya ile 3 ekleme ve 6 silme
  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;
       });
     },

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
dist/vuex.min.js


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor