@lijuhong1981/jsevents 1.1.2 → 1.1.3

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": "@lijuhong1981/jsevents",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "> TODO: description",
5
5
  "author": "lijuhong1981",
6
6
  "homepage": "https://github.com/lijuhong1981/jslibs#readme",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@lijuhong1981/jscheck": "^1.0.9",
23
- "@lijuhong1981/jsdestroy": "^1.1.7"
23
+ "@lijuhong1981/jsdestroy": "^1.1.8"
24
24
  },
25
- "gitHead": "8e6e9a4abcae386aeb2528d2a95df50332aa4144"
25
+ "gitHead": "611e658c8c0e2b72dbea60cbcd50ec6dc2d0b497"
26
26
  }
@@ -195,12 +195,10 @@ class EventDispatcher extends Destroyable {
195
195
  }
196
196
 
197
197
  /**
198
- * 销毁
199
- * @returns {this}
198
+ * 执行销毁
200
199
  */
201
- destroy() {
200
+ onDestroy() {
202
201
  this.clear();
203
- return super.destroy();
204
202
  }
205
203
  };
206
204
 
@@ -92,12 +92,10 @@ class EventEmitter extends Destroyable {
92
92
  }
93
93
 
94
94
  /**
95
- * 销毁
96
- * @returns {this}
95
+ * 执行销毁
97
96
  */
98
- destroy() {
97
+ onDestroy() {
99
98
  this._dispatcher.destroy();
100
- return super.destroy();
101
99
  }
102
100
  };
103
101
 
@@ -106,12 +106,10 @@ class EventSubscriber extends Destroyable {
106
106
  }
107
107
 
108
108
  /**
109
- * 销毁
110
- * @returns {this}
109
+ * 执行销毁
111
110
  */
112
- destroy() {
111
+ onDestroy() {
113
112
  this.clear();
114
- return super.destroy();
115
113
  }
116
114
  };
117
115