coffee-script icon indicating copy to clipboard operation
coffee-script copied to clipboard

Slight improve Inline Runtime defer method

Open jiangmiao opened this issue 11 years ago • 0 comments

the defer method

(defer_params) ->
   @count++
   (inner_params...) =>
       defer_params?.assign_fn?.apply(null, inner_params)
       @_fulfill()

could be changed to

(defer_params) ->
    @count++
    =>
        defer_params?.assign_fn?.apply(null, arguments)
        @_fulfill()

to avoid slice the arguments

jiangmiao avatar Mar 20 '13 08:03 jiangmiao