@leafer/data 2.0.2 → 2.0.4

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 +2 -2
  2. package/src/LeafData.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/data",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "@leafer/data",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "devDependencies": {
25
- "@leafer/interface": "2.0.2"
25
+ "@leafer/interface": "2.0.4"
26
26
  }
27
27
  }
package/src/LeafData.ts CHANGED
@@ -146,5 +146,6 @@ export class LeafData implements ILeafData {
146
146
 
147
147
  public destroy(): void {
148
148
  this.__input = this.__middle = null
149
+ if ((this as ILeafData).__complexData) (this as ILeafData).__complexData.destroy()
149
150
  }
150
151
  }