Re:‘This’ in JavaScript
by janci on Thursday August 03, 2017 @03:49AM
(#14917729)
Better yet element.addEventListener("click", self.handleClick.bind(this))
[ Parent
| on HN ]
This is less performant, because bind creates a new function with new context. At the framework level, bind is avoided at all costs.