I am trying to block the repetition of the execution of several functions that have the same name and basically, they are cloned.
This is not for a web, but it would be something easy to control, the issue is that each module that I draw on a page that is html, has its divs with its classes, functions, and ... as if it were an iframe, but between them they can 'read' what the other has.
So I need to isolate in some way that each module does not interact with others despite being identical.
I know it's hard to understand, but would there be any way? To check if there are for example three functions with the same name, to prevent it from being executed three times and only one?.
A thousand thanks!.