Hi!!
I'm migrating from 2.1.7 to 4.1.4. Easier than I thought (yet), thanks for the very helpful upgrade guides.
I'm having difficulty migrating one part about destroying though. Let's start with this line:
old code:
this.bryntumGantt.BryntumWidgetAdapterRegister.register(ColorField.type, ColorField);
Which is easily migrated to:
New code:
ColorField.initClass();
My app is pretty big so I unload the Gantt diagram when it's not needed with:
this.gantt.destroy();
Now I think I need to destroy the widget factory as well because when I return to the Gantt diagram part of my app, I get:
Type "colorfield" already registered with Widget factory
I could force the re-register but I'd rather keep memory usage low and destroy the factory when it's not needed.
So, is there a way to unload/destroy the Widget factory like I do with the Gantt diagram?