Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rayshan
on Aug 3, 2017
|
parent
|
context
|
favorite
| on:
‘This’ in JavaScript
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: