Skip to content

Commit cc98785

Browse files
authored
fix(model): prevent _store from becoming a cyclic object value. (#11)
1 parent 0696d40 commit cc98785

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/model/Model.ts

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ export class Model {
6161
this.$boot()
6262

6363
this.$fill(attributes, options)
64+
65+
// Prevent `_store` from becoming cyclic object value and causing
66+
// v-bind side-effects by negating enumerability.
67+
Object.defineProperty(this, '_store', { enumerable: false, writable: true })
6468
}
6569

6670
/**

0 commit comments

Comments
 (0)