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

Sync calls #2

Closed
k1r0s opened this issue Oct 28, 2015 · 0 comments
Closed

Sync calls #2

k1r0s opened this issue Oct 28, 2015 · 0 comments

Comments

@k1r0s
Copy link
Owner

k1r0s commented Oct 28, 2015

var retrieveSync = function(argsArray, call, callback){
  var arg, connect = function(path, args, self){
    $.get(path, function(data){
      call(path);
      self(args, call);
    });
  }
  if(!argsArray.length) callback(); else connect(argsArray.shift(), argsArray, retrieveSync);
}
@k1r0s k1r0s closed this as completed in 1fae982 Oct 28, 2015
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

No branches or pull requests

1 participant