Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : can.Observe.setter vs. .bind( 'change', . . .

$
0
0
Thanks for your time Curtis,
my data models hold their respective data trunks but also generate "processed data branches" as helper data for rendering views according to a given logic.

A few models already use the ".bind( 'change'," construct without any problems, but
I suspected and your response confirms, that there are too many events firing.

My way of implementing MVC structures never involves modifying incoming data but stays true to it.
Controllers always need to set in appropriate formats.
When a modified result-set is necessary, I generate a branch away from the main trunk,
hence no problem with infinite loops.

I will try to get a tighter, better structured and, most important, better performing code using setters.


Viewing all articles
Browse latest Browse all 3491

Trending Articles