I have a small problem, but I don't understand objects much so I'm confused...
Here, I create a js-timeline:
But I also want to re-run this code later on when you press that button again (for a different person)
var timeline = new VMM.Timeline();
Problem: When you re-click the button, the above code recreates the timeline BUT the existing instance of it exists, so I am actually creating multiple instances which causes the timeline to flicker.
I also have the same problem with some other items, not just timeline, so my question is really, how do I delete/clear the
var timeline ?
I've not explained what the thing actually does, because this is a more general problem I have regarding how objects are created/re-created.