jacomyal / domino.js

[deprecated] A JavaScript cascading controller for fast interactive Web interfaces prototyping.
https://jacomyal.github.io/domino.js
MIT License
54 stars 7 forks source link

[reboot-proposal] Mixin to bind event data to state #69

Open Yomguithereal opened 9 years ago

Yomguithereal commented 9 years ago

A lot of domino events can be seen as side effects in a pure interface scenario. For instance, when you want to display a toaster with a message, it is the same as outputting to console with clojure. It is in fact a side effect. A needed one, however.

I often bind the state of a component to the state of a particular event. This is tiresome to write correctly and a simple mixin could do the trick.