|
12 | 12 | /* jshint nomen:false */
|
13 | 13 | /* global define, require, window, document, location, Blob, FormData */
|
14 | 14 |
|
15 |
| -(function (factory) { |
| 15 | +;(function (factory) { |
16 | 16 | 'use strict';
|
17 | 17 | if (typeof define === 'function' && define.amd) {
|
18 | 18 | // Register as an anonymous AMD module:
|
|
652 | 652 | data.process = function (resolveFunc, rejectFunc) {
|
653 | 653 | if (resolveFunc || rejectFunc) {
|
654 | 654 | data._processQueue = this._processQueue =
|
655 |
| - (this._processQueue || getPromise([this])).pipe( |
| 655 | + (this._processQueue || getPromise([this])).then( |
656 | 656 | function () {
|
657 | 657 | if (data.errorThrown) {
|
658 | 658 | return $.Deferred()
|
659 | 659 | .rejectWith(that, [data]).promise();
|
660 | 660 | }
|
661 | 661 | return getPromise(arguments);
|
662 | 662 | }
|
663 |
| - ).pipe(resolveFunc, rejectFunc); |
| 663 | + ).then(resolveFunc, rejectFunc); |
664 | 664 | }
|
665 | 665 | return this._processQueue || getPromise([this]);
|
666 | 666 | };
|
|
945 | 945 | if (this.options.limitConcurrentUploads > 1) {
|
946 | 946 | slot = $.Deferred();
|
947 | 947 | this._slots.push(slot);
|
948 |
| - pipe = slot.pipe(send); |
| 948 | + pipe = slot.then(send); |
949 | 949 | } else {
|
950 |
| - this._sequence = this._sequence.pipe(send, send); |
| 950 | + this._sequence = this._sequence.then(send, send); |
951 | 951 | pipe = this._sequence;
|
952 | 952 | }
|
953 | 953 | // Return the piped Promise object, enhanced with an abort method,
|
|
1139 | 1139 | $.map(entries, function (entry) {
|
1140 | 1140 | return that._handleFileTreeEntry(entry, path);
|
1141 | 1141 | })
|
1142 |
| - ).pipe(function () { |
| 1142 | + ).then(function () { |
1143 | 1143 | return Array.prototype.concat.apply(
|
1144 | 1144 | [],
|
1145 | 1145 | arguments
|
|
1208 | 1208 | return $.when.apply(
|
1209 | 1209 | $,
|
1210 | 1210 | $.map(fileInput, this._getSingleFileInputFiles)
|
1211 |
| - ).pipe(function () { |
| 1211 | + ).then(function () { |
1212 | 1212 | return Array.prototype.concat.apply(
|
1213 | 1213 | [],
|
1214 | 1214 | arguments
|
|
0 commit comments