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

Destroying All Models in a Model.List

$
0
0
Should I be able to iterate over a Model.List using .each and destroy each model in the list or will the size of the list get screwed up after one is destroyed.

I haven't debugged it too much, but I have a Model.List with 2 models in and the the first one gets destroyed, but the second one seems to then be undefined. It is not undefined prior to the first destroy.

Thoughts?

Thanks.

Viewing all articles
Browse latest Browse all 3491

Trending Articles