Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
01-26-2013, 04:55 PM #1
- Join Date
- Jan 2013
- Thanked 1 Time in 1 Post
How to recreate an instance/object - JS Timeline for example
I have a small problem, but I don't understand objects much so I'm confused...
Here, I create a js-timeline:
var timeline = new VMM.Timeline(); timeline.init("json-timeline-person.php?global_pernr=1234");
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
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.