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

Live Binding Question

$
0
0
How does live binding get torn down? 

If I have a control that appends some DOM to it's element (this.element) using EJS that sets up live binding and the control's DOM element is removed, thus removing the DOM containing the live binding, should that tear it down?

I notice that when I setup live binding the model that is live bound has a property named "_bindings" that is set to 1 and the model instance is in its model store. 

But if I destroy the container control, the model remains in the store and _bindings is still 1

Shouldn't this set _bindings to 0 which would then remove it from the store?

Viewing all articles
Browse latest Browse all 3491

Trending Articles