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

Re : Purge Events @ can.Observe.stopBatch ?

$
0
0
I don't understand why you need to toggle livebinding on and off. Livebinding will only update a view if you have an .attr() call in your template (or a helper called from the template).

So if you are updating a deeply nested attribute that isn't used in the view, there will be no update.

This is an uncommon case, because you are using the Observer pattern and live binding, but don't want either to do what they normally do (fire events and live bind).

Regardless, the easiest solution to this is not use live binding. Instead, listen for the change events in your Control and decide whether or not you want to re-render the view. Your view will have to access properties using dot notation instead of attr() to avoid live binding.


Viewing all articles
Browse latest Browse all 3491

Trending Articles