Skip to content

Commit

Permalink
Vue & Vuex plugin as default export
Browse files Browse the repository at this point in the history
  • Loading branch information
presidenten committed Apr 27, 2017
1 parent 94b3a92 commit 8c25a21
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions dist/vuex+.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,23 +433,13 @@ var _newInstance = function (substore, instance) {
return result;
};

var setupDone = false;
var _vuePluginInstall = {
install: function install(Vue) {
Vue.mixin({
props: ['instance'],
created: function created() {
var this$1 = this;

if (!setupDone && this.$store) {
setStore(this.$store);
var importer = contextHmr.getNewInstance();
setup(importer);
importer.getModules();
importer.setupHMR(hmrHandler);
setupDone = true;
}

var findModuleName = function (parent) {
if (!this$1['$vuex+'] && parent.$parent) {
if (!parent.$parent['$vuex+']) {
Expand Down

0 comments on commit 8c25a21

Please sign in to comment.