Skip to content

Commit

Permalink
0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 4, 2016
1 parent 9a9d3da commit ddcc6db
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions dist/vuex.js
@@ -1,5 +1,5 @@
/*!
* Vuex v0.5.0
* Vuex v0.5.1
* (c) 2016 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -100,9 +100,11 @@
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._dispatching = false;
});
},
onMutation: function onMutation(mutation, state) {
Expand Down Expand Up @@ -455,9 +457,14 @@
override(Vue);
}

function createLogger() {
console.warn('[vuex] Vuex.createLogger has been deprecated.' + 'Use `import createLogger from \'vuex/logger\' instead.');
}

var index = {
Store: Store,
install: install
install: install,
createLogger: createLogger
};

return index;
Expand Down
4 changes: 2 additions & 2 deletions dist/vuex.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "vuex",
"version": "0.5.0",
"version": "0.5.1",
"description": "state management for Vue.js",
"main": "dist/vuex.js",
"files": [
Expand Down

0 comments on commit ddcc6db

Please sign in to comment.