Re:‘This’ in JavaScript
by rayshan on Thursday August 03, 2017 @11:51AM
(#14920614)
Bind is less performant, because bind creates a new function with new context. At the framework level, bind is avoided at all costs. @wiredearp's approach is correct, because it only adds a single event listener, everything else is conditional.
[ Parent
| on HN ]
There are no comments on this comment yet.