utils.js |
|
---|---|
This handy-dandy function makes life so much easier when your member functions are going to be including more than one or two callbacks.
|
exports.method = function(fn) {
return function() {
return fn.apply(this, [this].concat([].slice.call(arguments)));
};
};
|