@leafer/event 1.0.0-rc.11 → 1.0.0-rc.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/event",
3
- "version": "1.0.0-rc.11",
3
+ "version": "1.0.0-rc.16",
4
4
  "description": "@leafer/event",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,10 +22,10 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/decorator": "1.0.0-rc.11",
26
- "@leafer/platform": "1.0.0-rc.11"
25
+ "@leafer/decorator": "1.0.0-rc.16",
26
+ "@leafer/platform": "1.0.0-rc.16"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.11"
29
+ "@leafer/interface": "1.0.0-rc.16"
30
30
  }
31
31
  }
package/src/ChildEvent.ts CHANGED
@@ -7,6 +7,7 @@ export class ChildEvent extends Event implements IChildEvent {
7
7
 
8
8
  static ADD = 'child.add'
9
9
  static REMOVE = 'child.remove'
10
+ static DESTROY = 'child.destroy'
10
11
 
11
12
  readonly parent?: ILeaf
12
13
  readonly child?: ILeaf
package/types/index.d.ts CHANGED
@@ -19,6 +19,7 @@ declare class Event implements IEvent {
19
19
  declare class ChildEvent extends Event implements IChildEvent {
20
20
  static ADD: string;
21
21
  static REMOVE: string;
22
+ static DESTROY: string;
22
23
  readonly parent?: ILeaf;
23
24
  readonly child?: ILeaf;
24
25
  constructor(type: string, child?: ILeaf, parent?: ILeaf);