bnoguchi/hooks-js — pull request #8 by JamesHight (2012-11-28 02:23:55+00:00)
Title: Add support for hooked function callback arguments

Passes callback arguments from the hooked function back to the original callback function. It also allows post functions to modify the callback arguments.

Example:
````javascript
var A = function () {};
_.extend(A, hooks);
A.hook('get', function (key, callback) {
callback(null, 123);
});
A.post('get', function(next, key, callback, err, val) {
assert.equal(val, 123);
next(key, callback, err, 456);
});
var a = new A();
a.get(2, function(err, val){
assert.equal(val, 456);
});
````