Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jessaustin
on Oct 19, 2012
|
parent
|
context
|
favorite
| on:
JavaScript: Function Invocation Patterns
To confirm my understanding, would the erroneous line from the comment above be rewritten like:
button.onclick = obj.func.bind(obj);
So un-DRY! It's almost admirable, how blatant a hack this is.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: