Can anonymous created object be removed from memory (Backbone.js example)
<p>Let's say I have some models in a collection and views with events bound to them. An easy way to append this to the DOM is using a 'one-liner'.</p>

<pre><code>$('body').html(new MyView({ collection: new MyCollection() }).el);
</code></pre>

<p>Note here that the model has event listeners (CRUD), the collection has some, and the view has some.</p>

<p>Now we are done with this view, and we want to change the view. We can do something like this.</p>

<pre><code>$('body').html(new MyNextView({ collection: new MyNextCollection() }).el);
</code></pre>

<p>Now on the page there are all the new elements, but all the old elements are still in place. We need a way to unbind all the events from all the objects.</p>

<p>Is there a way to achieve this.</p>

<p>--</p>

<p>I know this would be possible if you keep an array with all the objects stored. That way you can loop trough the array and unbind all the events from all the object. I am just wondering if this is possible with anonymously created objects.</p>
