Re:Real-World JavaScript Anti-Patterns
by wpears on Tuesday December 30, 2014 @01:15PM
(#8815797)
His second bind example is incorrect.
In the for loop, the this value refers to the global object. To get the desired effect, it should be changed to elems[i] (this piece of code is trying to bind a handler to an element).
[ Parent
| on HN ]
There are no comments on this comment yet.