Comment
Comment by wpears
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).