New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can.batch.start/stop causes can.List with length>1 to render last element twice #680
Comments
Updated fiddle with |
ah, this might explain why I am having my last item rendered twice in a select list. |
@stevenvachon great catch. @cklanac , this is maybe because You can see how https://github.com/bitovi/canjs/blob/master/compute/compute.js#L233 checks the batch num. ... however on second thought, that doesn't seem like the likely problem. Maybe the arguments are not right for the add event. |
Add a batchNum property to can.batch. Add check in can.live.list add method to determine if current event was triggered during a batch job. if so, then exit the add. Fixes #680.
Add a batchNum property to can.batch. Add check in can.live.list add method to determine if current event was triggered during a batch job. if so, then exit the add. Fixes #680.
@stevenvachon Thanks for submitting the issues. This issue is caused by the In the meantime, you can workaround the issue by removing the http://canjs.com/docs/can.stache.Sections.html#section_Iteration |
will produce
1,2
, however:will produce
1,2,2
.?
http://jsfiddle.net/prometh/34YZP/
The text was updated successfully, but these errors were encountered: