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

Re : can.batch.start callback called too early in can.Map.extend() init?

$
0
0
can.batch is used when you have many different state (Map's attribute) changes but don't what each change to fire the event that will cause DOM change, so you combine them in batch, and DOM is changed once to reflect resulting state.

The element will be added as new list item is initialized. You may catch this moment in list inserted event.

Sophisticated is often turns to be complicated.

Viewing all articles
Browse latest Browse all 3491

Trending Articles