Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added reset function #402

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added reset function #402

wants to merge 2 commits into from

Commits on May 9, 2013

  1. added reset function

    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);
    }
    vedmack committed May 9, 2013
    Configuration menu
    Copy the full SHA
    9491fe4 View commit details
    Browse the repository at this point in the history
  2. better comment

    better comment
    vedmack committed May 9, 2013
    Configuration menu
    Copy the full SHA
    d91e813 View commit details
    Browse the repository at this point in the history