Skip to content
Browse files

<3 chaining

  • Loading branch information...
1 parent 77292ea commit 8eada91c515a59bcd5b21054b3dac4f2de9dacc0 @technoweenie technoweenie committed May 31, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/index.js
View
2 lib/index.js
@@ -39,6 +39,7 @@ ScopedClient.prototype.request = function(method, reqBody, callback) {
if(callback) callback(err, req)
+ var cli = this
return function(callback) {
if(callback) {
req.addListener('response', function(resp) {
@@ -58,6 +59,7 @@ ScopedClient.prototype.request = function(method, reqBody, callback) {
})
}
req.end()
+ return cli
}
}

0 comments on commit 8eada91

Please sign in to comment.
Something went wrong with that request. Please try again.