lib/Function.js
/**
 * The base function to be cloned when we're creating tasks.
 *
 * @returns {task(done)}
 */
The base function to be cloned when we're creating tasks.
The base function to be cloned when we ' re creating tasks .
function base() {
    var args = Array.prototype.slice.call(arguments),
        fn   = this,
        called
    return decorateTask(function (done, recall) {
        args.push(function() {
            if (!called && (called = true) || recall)
                done.apply(fn, arguments)
        })
        try {
            fn.apply(fn, args)
        }
        catch (ex) {
            done(ex)
        }
    }, true)
}
function base ( ) { var args = Array . prototype . slice . call ( arguments ) , fn = this , called return decorateTask ( function ( done , recall ) { args . push ( function ( ) { if ( ! called && ( called = true ) || recall ) done . apply ( fn , arguments ) } ) try { fn . apply ( fn , args ) } catch ( ex ) { done ( ex ) } } , true ) }
The base function to be cloned when we're creating tasks.
The base function to be cloned when we ' re creating tasks .