MCPcopy
hub / github.com/nervgh/angular-file-upload / _onCompleteItem

Method _onCompleteItem

src/services/FileUploader.js:738–753  ·  view source on GitHub ↗

* Inner callback * @param {FileItem} item * @param {*} response * @param {Number} status * @param {Object} headers * @private

(item, response, status, headers)

Source from the content-addressed store, hash-verified

736 * @private
737 */
738 _onCompleteItem(item, response, status, headers) {
739 item._onComplete(response, status, headers);
740 this.onCompleteItem(item, response, status, headers);
741
742 var nextItem = this.getReadyItems()[0];
743 this.isUploading = false;
744
745 if(isDefined(nextItem)) {
746 nextItem.upload();
747 return;
748 }
749
750 this.onCompleteAll();
751 this.progress = this._getTotalProgress();
752 this._render();
753 }
754 /**
755 * Inner callback
756 * @param {FileItem} item

Callers 4

onNextTickMethod · 0.95
_xhrTransportMethod · 0.95
_iframeTransportMethod · 0.95
uploadMethod · 0.80

Calls 7

onCompleteItemMethod · 0.95
getReadyItemsMethod · 0.95
onCompleteAllMethod · 0.95
_getTotalProgressMethod · 0.95
_renderMethod · 0.95
_onCompleteMethod · 0.80
uploadMethod · 0.80

Tested by

no test coverage detected