{"action":"created","issue":{"url":"https://api.github.com/repos/fex-team/webuploader/issues/1115","repository_url":"https://api.github.com/repos/fex-team/webuploader","labels_url":"https://api.github.com/repos/fex-team/webuploader/issues/1115/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/webuploader/issues/1115/comments","events_url":"https://api.github.com/repos/fex-team/webuploader/issues/1115/events","html_url":"https://github.com/fex-team/webuploader/issues/1115","id":97302783,"number":1115,"title":" 调用Queue.removeFile 后, 再调用Uploader.getFiles方法得到文件列表还包含已删除的文件。","user":{"login":"frankies","id":2113812,"avatar_url":"https://avatars.githubusercontent.com/u/2113812?v=3","gravatar_id":"","url":"https://api.github.com/users/frankies","html_url":"https://github.com/frankies","followers_url":"https://api.github.com/users/frankies/followers","following_url":"https://api.github.com/users/frankies/following{/other_user}","gists_url":"https://api.github.com/users/frankies/gists{/gist_id}","starred_url":"https://api.github.com/users/frankies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankies/subscriptions","organizations_url":"https://api.github.com/users/frankies/orgs","repos_url":"https://api.github.com/users/frankies/repos","events_url":"https://api.github.com/users/frankies/events{/privacy}","received_events_url":"https://api.github.com/users/frankies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-07-26T09:38:25Z","updated_at":"2016-12-15T04:44:54Z","closed_at":null,"body":"# \n\nQueue.removeFile 方法需要将 _queue 属性的file 移除\n\n``` javascript\n/**\n             * 在队列中删除文件。\n             * @grammar removeFile( file ) => Array\n             * @method removeFile\n             * @param {File} 文件对象。\n             */\n            removeFile: function( file ) {\n                var me = this,\n                    existing = this._map[ file.id ];\n\n                if ( existing ) {\n                    delete this._map[ file.id ];\n                    file.destroy();\n\n                    //Bug fix: remove from _queue too! by linzhw, 20150726\n                    for ( i = 0; i < this._queue.length; i++ ) {\n                      qfile = this._queue[ i ];\n\n                      if ( file === qfile) {\n                          var rmFile = this._queue.splice(i, 1)[0];\n                          rmFile.destroy();\n                          break;\n                      }\n                    }  \n                    this.stats.numofDeleted++;\n                }\n            },\n```\n"},"comment":{"url":"https://api.github.com/repos/fex-team/webuploader/issues/comments/267237725","html_url":"https://github.com/fex-team/webuploader/issues/1115#issuecomment-267237725","issue_url":"https://api.github.com/repos/fex-team/webuploader/issues/1115","id":267237725,"user":{"login":"fengyts","id":15372856,"avatar_url":"https://avatars.githubusercontent.com/u/15372856?v=3","gravatar_id":"","url":"https://api.github.com/users/fengyts","html_url":"https://github.com/fengyts","followers_url":"https://api.github.com/users/fengyts/followers","following_url":"https://api.github.com/users/fengyts/following{/other_user}","gists_url":"https://api.github.com/users/fengyts/gists{/gist_id}","starred_url":"https://api.github.com/users/fengyts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengyts/subscriptions","organizations_url":"https://api.github.com/users/fengyts/orgs","repos_url":"https://api.github.com/users/fengyts/repos","events_url":"https://api.github.com/users/fengyts/events{/privacy}","received_events_url":"https://api.github.com/users/fengyts/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T04:44:54Z","updated_at":"2016-12-15T04:44:54Z","body":"Queue.removeFile\r\n这个Queue着呢获取呢，不管怎么用都是undifined"}}
{"actor":{"display_login":"fengyts"}}