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

Re : model.List events for updated item?

$
0
0
Justin, thanks for the quick reply.

In the specific scenario, I'm getting an update via a socket event. So, not really a save - rather get json via socket and update the model instance from that.  In the component, I was thinking I could detect this with a "{list} updated" handler - similar to detected a new or removed item via "{list} add", "{list} remove". But, I can see that add/remove are List events ... vs instance methods. The only downside would be that "{model} updated"  may be for an instance that isn't in the list I'm concerned with, so can test for that before I do the logic.

question similar to 

best,
Mark

Viewing all articles
Browse latest Browse all 3491

Trending Articles