We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It appears that the code doesn't support the optional parameter as 'optional' when using a callback...
Need to shift the callback function given to the callback variable in the method if no parameter is given.
In JS I usually use something like:
//Handle options arguments if( _.isUndefined(cb) ) if( _.isFunction(param) ) ( param = options ) && ( param = undefined );
Not sure what you would do with that in CoffeeScript.
To reproduce:
var tableList = dynamo.list(function( err, test){
console.log('test');
});
and you will see the callback is never called.
The text was updated successfully, but these errors were encountered:
Actually, after looking at the code, the issue is:
if (params == !null) {
needs to be more like:
if (params !== null) {
and probably:
if ( ! _.isNil(params) ){
Sorry, something went wrong.
filed issue #79 to resolve
Looks like this was fixed with #79 closing
No branches or pull requests
It appears that the code doesn't support the optional parameter as 'optional' when using a callback...
Need to shift the callback function given to the callback variable in the method if no parameter is given.
In JS I usually use something like:
//Handle options arguments
if( _.isUndefined(cb) )
if( _.isFunction(param) )
( param = options ) && ( param = undefined );
Not sure what you would do with that in CoffeeScript.
To reproduce:
var tableList = dynamo.list(function( err, test){
});
and you will see the callback is never called.
The text was updated successfully, but these errors were encountered: