From cc9878590903f359b14f7b73bbee753827608623 Mon Sep 17 00:00:00 2001 From: Cue <1493221+cuebit@users.noreply.github.com> Date: Sat, 9 May 2020 07:23:30 +0100 Subject: [PATCH] fix(model): prevent `_store` from becoming a cyclic object value. (#11) --- src/model/Model.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model/Model.ts b/src/model/Model.ts index 567490b..f400b8a 100644 --- a/src/model/Model.ts +++ b/src/model/Model.ts @@ -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 }) } /**