Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Slight improve Inline Runtime defer method #65

Open
jiangmiao opened this Issue Mar 20, 2013 · 0 comments

Comments

Projects
None yet
1 participant

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment