Skip to content

Instantly share code, notes, and snippets.

@christian-bromann
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christian-bromann/11298370 to your computer and use it in GitHub Desktop.
Save christian-bromann/11298370 to your computer and use it in GitHub Desktop.
new execute command
/**
* old depcrecated version
*/
client.execute(function(arg1,arg2){
// do soemthing
},[arg1,arg2]);
// -----------------------------------------
/**
* new execute command
*/
client.execute(function(){
// do something
})
client.execute(function(a,b,c,d,e,f) {
// do something
},a,b,c,d,e,f)
client.execute(function(a,b,c,d,e,f) {
return Array.prototype.slice.call(arguments).join('');
},'a','b','c','d','e','f', function(err,res) {
assert(res.value , 'abcdef');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment