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....
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....
- players[2].removeAttr('team');
- 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....