maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
727 stars 58 forks source link

Slight improve Inline Runtime defer method #65

Open jiangmiao opened 11 years ago

jiangmiao commented 11 years ago

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