cayasso/oomvc — Issue #10: How do I clear a collection?
Author: noctivityinc
Created: 2011-10-27 00:36:39+00:00
State: open

Let's say that the Space model has a collection called lines. How do I clear the lines collection so it's empty?

Can I do something like:

space.lines.clear();

or is there another way I'm supposed to clear it?

Also, how do you delete something from a collection? If I wanted to remove a line with the key 'top' how would I remove it from the space.lines collection?