File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,13 @@ export default class EventEmitter{
91
91
92
92
if ( this . store && this . store . _actions ) {
93
93
94
+ let prefixed_event = this . actionPrefix + event ;
95
+
94
96
for ( let key in this . store . _actions ) {
95
97
96
98
let action = key . split ( '/' ) . pop ( ) ;
97
99
98
- if ( action === this . actionPrefix + event ) {
100
+ if ( action === prefixed_event ) {
99
101
100
102
Logger . info ( `Dispatching Action: ${ key } , Data:` , args ) ;
101
103
@@ -107,11 +109,13 @@ export default class EventEmitter{
107
109
108
110
if ( this . mutationPrefix ) {
109
111
112
+ let prefixed_event = this . mutationPrefix + event ;
113
+
110
114
for ( let key in this . store . _mutations ) {
111
115
112
116
let mutation = key . split ( '/' ) . pop ( ) ;
113
117
114
- if ( mutation === this . mutationPrefix + event ) {
118
+ if ( mutation === prefixed_event ) {
115
119
116
120
Logger . info ( `Commiting Mutation: ${ key } , Data:` , args ) ;
117
121
You can’t perform that action at this time.
0 commit comments