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

Already on GitHub? Sign in to your account

add Client#bind(ctx, methods) #10

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
1 participant
Contributor

stagas commented Aug 18, 2013

allows for things like:

client.methods(function(err, methods){
  client.bind(client, methods);

  client.add(1, 2, function(err, n){
    console.log(n);
    // => 3
  });
})

tests & docs included

Contributor

stagas commented Aug 19, 2013

it was breaking for variable argument functions, now fixed. Originally wanted to avoid slicing arguments.

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