Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

通过addFile加入进去的file的status怎么是inited?不应该是queued?而且通过removeFile之后状态变为了cancelled。。我想变为初始状态,然后再变为queued,能否实现? #967

Open
wag458525 opened this issue May 20, 2015 · 1 comment

Comments

@wag458525
Copy link

No description provided.

@herrdu
Copy link

herrdu commented Jul 7, 2017

之前的代码 :
_fileAdded: function( file ) {
var me = this,
existing = this._map[ file.id ];

            if ( !existing ) {
                this._map[ file.id ] = file;

                file.on( 'statuschange', function( cur, pre ) {
                    me._onFileStatusChange( cur, pre );
                });
            }

            file.setStatus( STATUS.QUEUED );
        },

最新的代码 :
_fileAdded: function( file ) {
var me = this,
existing = this._map[ file.id ];

            if ( !existing ) {
                this._map[ file.id ] = file;

                file.on( 'statuschange', function( cur, pre ) {
                    me._onFileStatusChange( cur, pre );
                });
            }
        },

你们为什么这样调整呢?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants