Replace instances of pipe in fileupload with then

pull/4094/merge
Janneke Janssen 2017-12-12 16:40:27 +01:00 zatwierdzone przez Matt Westcott
rodzic 82e5cb2cf9
commit 293bdf8a44
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -919,7 +919,7 @@
if (this.options.limitConcurrentUploads > 1) {
slot = $.Deferred();
this._slots.push(slot);
pipe = slot.pipe(send);
pipe = slot.then(send);
} else {
this._sequence = this._sequence.then(send, send);
pipe = this._sequence;
@ -1090,7 +1090,7 @@
$.map(entries, function (entry) {
return that._handleFileTreeEntry(entry, path);
})
).pipe(function () {
).then(function () {
return Array.prototype.concat.apply(
[],
arguments
@ -1159,7 +1159,7 @@
return $.when.apply(
$,
$.map(fileInput, this._getSingleFileInputFiles)
).pipe(function () {
).then(function () {
return Array.prototype.concat.apply(
[],
arguments