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

Views with model lists sometimes don't auto-update (js fiddle included)

$
0
0
I'm struggling to understand this live binding CanJS is doing to model lists. I have a few views being populated with model lists.  Some of these views automatically update when a model is destroyed.  Some of them don't.  I don't really understand the rhyme or reason for it and I really want to.

Here's a JS Fiddle example of something that seems like it should work but doesn't:

What am I missing here?

I have a cart control that's doing basically this.  When a cart item is destroyed the card item element goes away.  But I have a different control set up nearly identically that *doesn't* update itself when the element is destroyed.  I'm at a loss.

Viewing all articles
Browse latest Browse all 3491

Trending Articles