3 ms·
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 almos
by jessaustin 14y ago
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.