Skip to content

Commit 30d8eba

Browse files
committed
Fix wrong syntax for callback argument
1 parent 0103264 commit 30d8eba

File tree

1 file changed

+4
-2
lines changed
  • src/vfjs-global-mixin/methods/vfjs-state

1 file changed

+4
-2
lines changed

src/vfjs-global-mixin/methods/vfjs-state/setters.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ const vfjsStateSetters = {
1414
setVfjsState(state) {
1515
if (!isEqual(state, this.getVfjsState())) {
1616
this.vfjsState = Object.assign({}, this.getVfjsState(), state);
17-
this.vfjsBus.$emit(VFJS_EVENT_STATE_UPDATED, () => {
18-
this.setVfjsFields();
17+
this.vfjsBus.$emit(VFJS_EVENT_STATE_UPDATED, {
18+
cb: () => {
19+
this.setVfjsFields();
20+
},
1921
});
2022
}
2123
},

0 commit comments

Comments
 (0)