Skip to content

Commit

Permalink
fix(model): prevent _store from becoming a cyclic object value. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuebit authored May 9, 2020
1 parent 0696d40 commit cc98785
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/model/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export class Model {
this.$boot()

this.$fill(attributes, options)

// Prevent `_store` from becoming cyclic object value and causing
// v-bind side-effects by negating enumerability.
Object.defineProperty(this, '_store', { enumerable: false, writable: true })
}

/**
Expand Down

0 comments on commit cc98785

Please sign in to comment.