vendor/assets/javascripts/cloudinary/jquery.fileupload-process.js in cloudinary-1.2.0 vs vendor/assets/javascripts/cloudinary/jquery.fileupload-process.js in cloudinary-1.2.1

- old
+ new

@@ -10,11 +10,11 @@ */ /* jshint nomen:false */ /* global define, require, window */ -(function (factory) { +;(function (factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // Register as an anonymous AMD module: define([ 'jquery', @@ -82,11 +82,11 @@ that, data, settings ); }; - chain = chain.pipe(func, settings.always && func); + chain = chain.then(func, settings.always && func); }); chain .done(function () { that._trigger('processdone', null, data); that._trigger('processalways', null, data); @@ -149,10 +149,10 @@ } return that._processFile(opts, data); }; opts.index = index; that._processing += 1; - that._processingQueue = that._processingQueue.pipe(func, func) + that._processingQueue = that._processingQueue.then(func, func) .always(function () { that._processing -= 1; if (that._processing === 0) { that._trigger('processstop'); }