documentcloud/backbone — Issue #913: deleting and re-inserting view.el into dom
Author: Charuru
Created: 2012-01-31 16:18:30+00:00
State: open

I have an element with event bindings. I insert them into the dom. After insertion I delete the parent element in the DOM.

Later on when I reinsert the element into the DOM the event bindings are lost.

I have to use this.delegateEvents() to get them back. I expected that the events bound would still hold even if the element was removed from the dom. Why is my expectation incorrect?

Thanks!