diff options
Diffstat (limited to 'src/node/src/client.js')
-rw-r--r-- | src/node/src/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/src/client.js b/src/node/src/client.js index c02c44730e..c65dd73650 100644 --- a/src/node/src/client.js +++ b/src/node/src/client.js @@ -648,8 +648,8 @@ exports.makeClientConstructor = function(methods, serviceName) { var deserialize = attrs.responseDeserialize; Client.prototype[name] = requester_makers[method_type]( attrs.path, serialize, deserialize); - Client.prototype[name].serialize = serialize; - Client.prototype[name].deserialize = deserialize; + // Associate all provided attributes with the method + _.assign(Client.prototype[name], attrs); }); return Client; |