canvasframework 0.5.49 → 0.5.51

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,17 @@ 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
+
2014
+ if (comp._unmount && typeof comp._unmount === 'function') {
2015
+ comp._unmount();
2016
+ }
2009
2017
  });
2010
-
2018
+
2019
+
2011
2020
  // ✅ Nettoyer toutes les vidéos orphelines AVANT de créer les nouveaux composants
2012
2021
  const allVideos = document.querySelectorAll('video');
2013
2022
  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.51",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/beyons/CanvasFramework.git"