muigui 0.0.21 → 0.0.22

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.
@@ -1,4 +1,4 @@
1
- /* muigui@0.0.21, license MIT */
1
+ /* muigui@0.0.22, license MIT */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -2756,6 +2756,10 @@
2756
2756
  const elem = c0.domElement;
2757
2757
  elem.remove();
2758
2758
  c0.setParent(null);
2759
+ } else {
2760
+ this.#controllers.forEach(c => {
2761
+ c.remove(controller);
2762
+ });
2759
2763
  }
2760
2764
  return this;
2761
2765
  }