Skip to content
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

removeUploaded does not remove all records #28

Open
Evgsurf opened this issue Dec 25, 2013 · 0 comments
Open

removeUploaded does not remove all records #28

Evgsurf opened this issue Dec 25, 2013 · 0 comments

Comments

@Evgsurf
Copy link

Evgsurf commented Dec 25, 2013

file: Basic.js
method: removeUploaded

If you remove some records in each cycle, you must to use reverse method.
Tut mir leid, store.each does not support reverse mode

Here is my patch (bad style, no time to optimizing)

removeUploaded: function()    {
    var a = [];
    this.store.each(function(record)
    {
        if(record && record.get('status') == 5)
        {
            a.push(record.get('id'));
        }
    }, this);

    Ext.Array.each(a, function(value) {
        this.removeFile(value);
    },this,true);        
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant