Skip to content

Commit

Permalink
Fix wrong syntax for callback argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvelov committed Aug 16, 2020
1 parent 0103264 commit 30d8eba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vfjs-global-mixin/methods/vfjs-state/setters.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ const vfjsStateSetters = {
setVfjsState(state) {
if (!isEqual(state, this.getVfjsState())) {
this.vfjsState = Object.assign({}, this.getVfjsState(), state);
this.vfjsBus.$emit(VFJS_EVENT_STATE_UPDATED, () => {
this.setVfjsFields();
this.vfjsBus.$emit(VFJS_EVENT_STATE_UPDATED, {
cb: () => {
this.setVfjsFields();
},
});
}
},
Expand Down

0 comments on commit 30d8eba

Please sign in to comment.