Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vedmack
Copy link

@vedmack vedmack commented May 9, 2013

call reset function before populating timeline with new data (before calling my_timeline_obj.init(my_timeline_config);)

vedmack added 2 commits May 9, 2013 09:39
call reset function before populating timeline with new data (before calling my_timeline_obj.init(my_timeline_config);)

example 

make global:
var timeline_config, storyjs_embedjs;

//in your init function :
if (storyjs_embedjs === undefined) {
    storyjs_embedjs = new VMM.Timeline('my-timeline', '100%', '100%');
    storyjs_embedjs.init(timeline_config);
} else {
    storyjs_embedjs.reset();
    storyjs_embedjs.init(timeline_config);
}
better comment
@vedmack
Copy link
Author

vedmack commented May 9, 2013

b.t.w its the code that was posted by Keven Lefebvre in this thread : https://groups.google.com/forum/#!msg/verite-timeline/lMSKOYXybg4/txsqs79hCS8J

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant