issa-tseng/janus

Maybe: Model/DomView builder react() declaration

issa-tseng opened this issue · 0 comments

Most of the time when _initialize or _wireEvents are used, the reason is to write a series of (…).get(…).react(…) statements (or, more correctly, this.reactTo(this.get(…), …)).

I dislike needing to actually override the method body and I dislike both these method names (one more than the other can you guess which?) but sometimes you just have to and try as I might I can't come up with better names.

If we add a react() type declaration to subsume these occasions, we move a lot of that need away and so I don't have to see those names as often.