javascript - Creating a new class more than once -


i have various javascript classes.

a class created so:

this.user = new app.user(); 

my question is, if call above again , again , again (every time open modal) there memory issues? old class replaced new copy assigning same user var? need consider?

try create empty list type of class , every time create new instance class initialize last index undefined object :)

this manage classes :)


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -