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
Considering that browser has one event queue, you do:
  1. can.batch.start()

  2. // here you make some synchronous attribute changes

  3. can.batch.stop()

  4. //DOM stuff is performed once based on made attribute changes (synchronously)
  5. //
  6. //here you can do your stuff that will be performed synchronously after

Viewing all articles
Browse latest Browse all 3491

Trending Articles