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

Re : Updating a live binded Observable object

$
0
0
Thanks Justin

So what you are saying is that the only way to get the live update to trigger is to modify the existing object.

Do I then need to go in and run .attr on every single property in the object?

IE. for my original user object that has maybe 5-10 properties I need to run som form of "for in" loop and run attr('key') in the original object for every property?

What do I do with deeper objects like the array of addresses above? Do I need to run attr on the top level - array object or do I need to traverse down and run attr on every object in that array as well?

What about the view? Do I need to attr on the top level object or on all object deeper down as well? is it enough to do attr on the array itself and have it update the children automatically?

Viewing all articles
Browse latest Browse all 3491

Trending Articles