Oh, sorry, it's 'call' that is bound, not forEach ;-)

On Thursday, April 3, 2014 11:10:49 AM UTC-7, [email protected] wrote:
>
> In the polymer source I read some places:
>
> var forEach = Array.prototype.forEach.call.bind(Array.prototype.forEach);
>
> Why is the function is bound to itself?
>
> jjb
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/ca593a2b-5233-4bbc-8027-963855a7ba98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to