in my project I’ve got a lot of optional eventListener;
after destroying/enabling the entity someTimes/someTimesNot fetch an event /mouse/touch or most likely keyboard)
as always i made a goood working QuickFix setting a status/mode for everyThing listen to events;
But I’m sure thats verry bat coding
In cases like first lockIn I which I:m sure pop up only once , I call element.off(event)
But in other cases I’m not sure to destroy();
I’ve plenty of entitys that are enebaled/disabled that should keep they local values/attributes so I won’ destoy(); them;
But so the enitys are disabled they still listen to events (most likely keyboard) and do something unespected…
every best practice is very welcome…