lib/Function.js
/**
 * Attach specialised task factory methods to the given task base.
 *
 * @param t {task(done)} The task to decorate.
 * @param fn {Function} The function that will be wrapt into a task by one of the factories.
 * @returns {task(done)}
 */
Attach specialised task factory methods to the given task base.
@param t {task(done)} The task to decorate.
@param fn {Function} The function that will be wrapt into a task by one of the factories.
Attach specialised task factory methods to the given task base . @param t { task ( done ) } The task to decorate . @param fn { Function } The function that will be wrapt into a task by one of the factories .
function decorateBase(t, fn) {
    Object.defineProperties(t, {
        task: { get: function () { return task.bind(fn) } },
        wrap: { get: function () { return wrap.bind(fn) } },
        pass: { get: function () { return pass.bind(fn) } }
    })
    return t
}
function decorateBase ( t , fn ) { Object . defineProperties ( t , { task : { get : function ( ) { return task . bind ( fn ) } } , wrap : { get : function ( ) { return wrap . bind ( fn ) } } , pass : { get : function ( ) { return pass . bind ( fn ) } } } ) return t }
Attach specialised task factory methods to the given task base.
Attach specialised task factory methods to the given task base .