>
> snip
>

> [1] https://gist.github.com/2899468
>
>
Nothing about the code in this gist actually needs to use bind(), but your
findings are certainly as expected - bind() actually creates a whole new
function object to return, whereas closing over with a function expression
or passing as arguments clearly do not.

Just a heads up, there is quite a bit of stack and invocation noise being
created in this example - a quick way to see this is by removing cb() and
cb.call(), you'll notice the values lower.



Rick

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to