Skip to content

Commit

Permalink
length should correctly use the maximum number of parameters, which i…
Browse files Browse the repository at this point in the history
…s present in the wrapper prototype method, and may not be there in the base class implementation.
  • Loading branch information
AnalogJ committed Apr 6, 2015
1 parent 9a98259 commit 4ca2a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wrapper/client_wrapper.js
Expand Up @@ -78,7 +78,7 @@ module.exports = function(name,base_client,transform, provider_config, credentia
//TODO: pop the filefog variable off the args object, it should only be used to configure Filefog.
var self = this;
try{
var expected_parameters = ClientWrapper.super_.prototype[method].length;
var expected_parameters = ClientWrapper.prototype[method].length;
if((expected_parameters-1) >= 0){
//filefog_options is always the last parameter.
args = Array.prototype.slice.call(args)
Expand Down

0 comments on commit 4ca2a18

Please sign in to comment.