From 293bdf8a449444af4b3d575b120e248a611c83e2 Mon Sep 17 00:00:00 2001 From: Janneke Janssen Date: Tue, 12 Dec 2017 16:40:27 +0100 Subject: [PATCH] Replace instances of pipe in fileupload with then --- .../static_src/wagtailadmin/js/vendor/jquery.fileupload.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery.fileupload.js b/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery.fileupload.js index 71d0b3f737..85ff90546e 100644 --- a/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery.fileupload.js +++ b/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery.fileupload.js @@ -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