Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: