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

Re : Nested Models With Associations Bug?

$
0
0
Removing the "team" attribute from the player instance seems to fix the infinite loop (after adding a fixture for "DELETE /players/{id}"), but I suspect that's not the right solution....
  1. players[2].removeAttr('team');
  2. can.when(players[2].destroy()).then(function(g) { console.dir(g) } )

I don't know what side effects that might have, but it looks like both the "players" list and player[2]'s Team end up looking as they should. It feels like this shouldn't be necessary (or safe), though....

Viewing all articles
Browse latest Browse all 3491

Trending Articles