@antv/g-lite 2.2.0 → 2.2.1

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/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * @antv/g-lite
3
3
  * @description A core module for rendering engine implements DOM API.
4
- * @version 2.2.0
5
- * @date 11/4/2024, 9:35:22 AM
4
+ * @version 2.2.1
5
+ * @date 11/5/2024, 10:45:58 AM
6
6
  * @author AntVis
7
7
  * @docs https://g.antv.antgroup.com/
8
8
  */
@@ -9680,7 +9680,6 @@ var EventService = /*#__PURE__*/function () {
9680
9680
  key: "notifyListeners",
9681
9681
  value: function notifyListeners(e, type) {
9682
9682
  // hack EventEmitter, stops if the `propagationImmediatelyStopped` flag is set
9683
- // @ts-ignore
9684
9683
  var emitter = e.currentTarget.emitter;
9685
9684
  // @ts-ignore
9686
9685
  var listeners = emitter._events[type];
@@ -12158,6 +12157,9 @@ var Element = /*#__PURE__*/function (_Node) {
12158
12157
  }, {
12159
12158
  key: "destroy",
12160
12159
  value: function destroy() {
12160
+ // fix https://github.com/antvis/G/issues/1813
12161
+ this.destroyChildren();
12162
+
12161
12163
  // destroy itself before remove
12162
12164
  this.dispatchEvent(destroyEvent);
12163
12165