From 6ac84d4fbd3b5e789bdd526a1a18f6d735bd9bff Mon Sep 17 00:00:00 2001 From: Ludovic PETRENKO Date: Sun, 24 Mar 2019 18:51:04 -0700 Subject: [PATCH] Changed condition --- src/emitter.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/emitter.js b/src/emitter.js index d38fb87..c2ac226 100644 --- a/src/emitter.js +++ b/src/emitter.js @@ -90,11 +90,12 @@ export default class EventEmitter{ * @param args */ dispatchStore(event, args){ - if(!this.store){ - return - } + if(this.store){ - this.dispatchModule('', this.store._modules.root, event, args) + this.dispatchModule('', this.store._modules.root, event, args) + + } + } dispatchModule(path, mod, event, args){