{"size": 485, "ext": "js", "max_stars_repo_path": "scripts/worker/dispatcher.js", "max_stars_repo_name": "andrew-yavtushenko/sequencer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "scripts/worker/dispatcher.js", "max_issues_repo_name": "andrew-yavtushenko/sequencer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scripts/worker/dispatcher.js", "max_forks_repo_name": "andrew-yavtushenko/sequencer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.962962963, "max_line_length": 49, "alphanum_fraction": 0.6824742268}
var tracks = [];
var currentTrack;
var dispatherIsInitialized = false;

function initDispatcher () {

  if (dispatherIsInitialized) return;

  dispatherIsInitialized = true;

  onmessage = parseMessage;

  function parseMessage(message) {
    var fn;
    
    var actionName = message.data.shift(0, 1);
    var messageId = message.data.shift(0, 1);

    fn = wrapper[actionName];

    var result = fn.call(null, message.data);

    postMessage([actionName, messageId, result]);
  }

}
