canvasframework 0.5.49 → 0.5.50

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.
@@ -2006,8 +2006,24 @@ class CanvasFramework {
2006
2006
  comp.destroy();
2007
2007
  }
2008
2008
  }
2009
+
2010
+ // 2. Désactiver TOUS les gestionnaires d'événements
2011
+ comp.onClick = null;
2012
+ comp.onPress = null;
2013
+ comp.onMove = null;
2014
+ comp.onHover = null;
2015
+ comp.onFocus = null;
2016
+ comp.onBlur = null;
2017
+ comp.onChange = null;
2018
+ comp.onInput = null;
2019
+ comp.onSubmit = null;
2020
+
2021
+ if (comp._unmount && typeof comp._unmount === 'function') {
2022
+ comp._unmount();
2023
+ }
2009
2024
  });
2010
-
2025
+
2026
+
2011
2027
  // ✅ Nettoyer toutes les vidéos orphelines AVANT de créer les nouveaux composants
2012
2028
  const allVideos = document.querySelectorAll('video');
2013
2029
  allVideos.forEach(v => v.remove());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvasframework",
3
- "version": "0.5.49",
3
+ "version": "0.5.50",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/beyons/CanvasFramework.git"