-
Notifications
You must be signed in to change notification settings - Fork 35
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
Clicking cancel uploads only removes half of files from queue #7
Comments
For the cancel all handler, a while loop works better then using each. backbone.upload-manager.js ln 198:
|
@paradigmbase Nice solution. Thx a lot! |
Np |
Doesn't look like this solution ever got merged in. The bug persists on the demo page. I will setup a PR for this. |
@paradigmbase Your code snippet seams to always loop on the first item, as the |
It essentially does the same thing as your original code, except that instead of using each it uses a while loop. The each loop didn't allow the cancel method to be called on each model in the collection, but a while loop does. It does call cancel on the first item of the collection. However, each time the loop iterates this is a new item since the previous first item has been removed. |
In my app as well as the demo page, clicking on Cancel Uploads only removes half of the files in the queue.
The text was updated successfully, but these errors were encountered: