Skip to content

Commit ba8f904

Browse files
committed
Do not merge in the current vfjsModel when model is updated. Fixes #11
1 parent 4971085 commit ba8f904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vfjs-global/methods/vfjs-model/setters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const vfjsModelSetters = {
1313
},
1414
setVfjsModel(model, silent = false) {
1515
if (!isEqual(model, this.vfjsModel)) {
16-
this.vfjsModel = Object.assign({}, this.getVfjsModel(), model);
16+
this.vfjsModel = model;
1717

1818
if (!silent) {
1919
this.vfjsBus.emit(VFJS_EVENT_MODEL_UPDATED, this.getVfjsModel());

0 commit comments

Comments
 (0)