hftf / coords

2 stars 1 forks source link

State refactor #46

Closed MattiasBuelens closed 10 years ago

MattiasBuelens commented 10 years ago

Refactored State to better handle changes.

This also fixes #31, since now rotateState triggers the correct updates.

hftf commented 10 years ago

Looks great. I suppose we don’t really need the currying stuff anymore.

MattiasBuelens commented 10 years ago

True, the currying for setState could be removed without much effort.

rotateState and rotateStates are a bit trickier, since they both use the State and the DOM element objects and only one of those can be the this context. We should probably make it accept the element(s) as parameter and change the event handler binding.

hftf commented 10 years ago

Done — see d926258.

MattiasBuelens commented 10 years ago

Went a bit more in depth in #47. :wink: