@onehat/data 1.8.14 → 1.8.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Entity.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.8.14",
3
+ "version": "1.8.15",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/Entity.js CHANGED
@@ -1297,6 +1297,10 @@ class Entity extends EventEmitter {
1297
1297
  if (this.isFrozen) {
1298
1298
  return;
1299
1299
  }
1300
+
1301
+ // Save destroyed properties
1302
+ this.destroyedProperties = this.displayValues;
1303
+
1300
1304
  this._id = this.id; // save id, so we can query it later--even on a destroyed entity
1301
1305
 
1302
1306
  // parent objects