Last active
August 29, 2015 14:00
-
-
Save christian-bromann/11298370 to your computer and use it in GitHub Desktop.
new execute command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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