ga-wdi-boston / js-function-context-this

Other
0 stars 126 forks source link

bind? #11

Closed RealWeeks closed 8 years ago

RealWeeks commented 8 years ago

Add bind?

jrhorn424 commented 8 years ago

I think this is worthwhile addition. It allows you to isolate your DOM manipulation code into objects and separate the registration of events from the handlers that are both encapsulated. I have some code examples from 006 if you want those.

jrhorn424 commented 8 years ago

I believe it was the toggle hide functionality presented in the first volume of "Mastering Space and Time with JavaScript".

RealWeeks commented 8 years ago

@jrhorn424 I added bind with commit 6d612b1421a0e119ef2bff6912d554d3c7ef80af I'm going to close this. Please open if you think it need elaboration.