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
The new rewritten version no longer requires the wrappers that I'd used before and works in these cases:
  1. {{#if message}}
  2.     <div class="example" can-transition="true">
  3.         {{message}}
  4.     </div>
  5. {{/if}}

  6. {{#each items}}
  7.     <div class="example" can-transition="true">
  8.         {{message}}
  9.     </div>
  10. {{/each}}
… but not this case:
  1. {{#if items.length}}
  2.     <!-- div container does not wait for children to finish transitioning -->
  3.     <div>
  4.         {{#each items}}
  5.             <div class="example" can-transition="true">
  6.                 {{message}}
  7.             </div>
  8.         {{/each}}
  9.     </div>
  10. {{/if}}
Even after looking into jQuery++'s event.pause/resume, I'm not sure yet how to incorporate events in this scenario.

Viewing all articles
Browse latest Browse all 3491

Trending Articles