Skip to content

Commit

Permalink
Tiny fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinND committed Jun 10, 2014
1 parent 2b1b584 commit b1efeb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ var generateAdvancedMappings = function(mappingFunctions) {
return cb(new Error('Argument error in getDocumentById: the first argument must be a numeric id'));
}

if(typeof(config) === 'function') {
if(isFunction(config)) {
config = config();
}
if (!config.file) {
Expand Down
2 changes: 1 addition & 1 deletion sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Anyfetch.getAccessToken(APP_ID, APP_SECRET, code, function(err, accessToken) {

client.getSubcompanyById(123, cb);

client.postUsers({ endpoint: 'rere' }, cb );
client.postUser({ name: 'Rick' }, cb );

client.updateCompany(cbErr);
client.resetCompany(cbErr);
Expand Down

0 comments on commit b1efeb5

Please sign in to comment.