Sha256: f33c597d950b71feded2b1c9bda63be1babb151cb315c4d0e7c462af31e10a17

Contents?: true

Size: 429 Bytes

Versions: 7

Compression:

Stored size: 429 Bytes

Contents

Lanes.lib.results = {
    # Like underscore's results but allows passing
    # arguments to the function if it's called
    resultsFor:( method, args... )->
        if _.isString(method)
            if _.isFunction(this[method])
                this[method].apply(this,args)
            else
                this[method]
        else if _.isFunction(method)
            method.apply(this,args)
        else
            method

}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lanes-0.1.2 client/lanes/lib/results.coffee
lanes-0.1.0 client/lanes/lib/results.coffee
lanes-0.0.8 client/lanes/lib/results.coffee
lanes-0.0.5 client/lanes/lib/results.coffee
lanes-0.0.3 client/javascripts/lib/results.coffee
lanes-0.0.2 client/javascripts/lib/results.coffee
lanes-0.0.1 client/javascripts/lib/results.coffee