Skip to content

Commit cfef518

Browse files
committed
Update assets to v9.9.2
1 parent 03d3b77 commit cfef518

14 files changed

+84
-28
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jquery-fileupload-rails is a library that integrates jQuery File Upload for Rail
66

77
## Plugin versions
88

9-
* jQuery File Upload User Interface Plugin 9.6.0
10-
* jQuery File Upload Plugin 5.42.0
11-
* jQuery UI Widget 1.11.1
9+
* jQuery File Upload User Interface Plugin 9.6.1
10+
* jQuery File Upload Plugin 5.42.2
11+
* jQuery UI Widget 1.11.1+CommonJS
1212

1313
## Installing Gem
1414

app/assets/javascripts/jquery-fileupload/cors/jquery.postmessage-transport.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery postMessage Transport Plugin 1.1.1
2+
* jQuery postMessage Transport Plugin 1.1.2
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -9,13 +9,16 @@
99
* http://www.opensource.org/licenses/MIT
1010
*/
1111

12-
/* global define, window, document */
12+
/* global define, require, window, document */
1313

1414
(function (factory) {
1515
'use strict';
1616
if (typeof define === 'function' && define.amd) {
1717
// Register as an anonymous AMD module:
1818
define(['jquery'], factory);
19+
} else if (typeof exports === 'object') {
20+
// Node/CommonJS:
21+
factory(require('jquery'));
1922
} else {
2023
// Browser globals:
2124
factory(window.jQuery);

app/assets/javascripts/jquery-fileupload/cors/jquery.xdr-transport.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery XDomainRequest Transport Plugin 1.1.3
2+
* jQuery XDomainRequest Transport Plugin 1.1.4
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -12,13 +12,16 @@
1212
* https://github.com/jaubourg/ajaxHooks/
1313
*/
1414

15-
/* global define, window, XDomainRequest */
15+
/* global define, require, window, XDomainRequest */
1616

1717
(function (factory) {
1818
'use strict';
1919
if (typeof define === 'function' && define.amd) {
2020
// Register as an anonymous AMD module:
2121
define(['jquery'], factory);
22+
} else if (typeof exports === 'object') {
23+
// Node/CommonJS:
24+
factory(require('jquery'));
2225
} else {
2326
// Browser globals:
2427
factory(window.jQuery);

app/assets/javascripts/jquery-fileupload/jquery.fileupload-audio.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Audio Preview Plugin 1.0.3
2+
* jQuery File Upload Audio Preview Plugin 1.0.4
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2013, Sebastian Tschan
@@ -10,7 +10,7 @@
1010
*/
1111

1212
/* jshint nomen:false */
13-
/* global define, window, document */
13+
/* global define, require, window, document */
1414

1515
(function (factory) {
1616
'use strict';
@@ -21,6 +21,12 @@
2121
'load-image',
2222
'./jquery.fileupload-process'
2323
], factory);
24+
} else if (typeof exports === 'object') {
25+
// Node/CommonJS:
26+
factory(
27+
require('jquery'),
28+
require('load-image')
29+
);
2430
} else {
2531
// Browser globals:
2632
factory(

app/assets/javascripts/jquery-fileupload/jquery.fileupload-image.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Image Preview & Resize Plugin 1.7.2
2+
* jQuery File Upload Image Preview & Resize Plugin 1.7.3
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2013, Sebastian Tschan
@@ -10,7 +10,7 @@
1010
*/
1111

1212
/* jshint nomen:false */
13-
/* global define, window, Blob */
13+
/* global define, require, window, Blob */
1414

1515
(function (factory) {
1616
'use strict';
@@ -25,6 +25,12 @@
2525
'canvas-to-blob',
2626
'./jquery.fileupload-process'
2727
], factory);
28+
} else if (typeof exports === 'object') {
29+
// Node/CommonJS:
30+
factory(
31+
require('jquery'),
32+
require('load-image')
33+
);
2834
} else {
2935
// Browser globals:
3036
factory(

app/assets/javascripts/jquery-fileupload/jquery.fileupload-jquery-ui.js

100644100755
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload jQuery UI Plugin 8.7.1
2+
* jQuery File Upload jQuery UI Plugin 8.7.2
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2013, Sebastian Tschan
@@ -10,13 +10,16 @@
1010
*/
1111

1212
/* jshint nomen:false */
13-
/* global define, window */
13+
/* global define, require, window */
1414

1515
(function (factory) {
1616
'use strict';
1717
if (typeof define === 'function' && define.amd) {
1818
// Register as an anonymous AMD module:
1919
define(['jquery', './jquery.fileupload-ui'], factory);
20+
} else if (typeof exports === 'object') {
21+
// Node/CommonJS:
22+
factory(require('jquery'));
2023
} else {
2124
// Browser globals:
2225
factory(window.jQuery);

app/assets/javascripts/jquery-fileupload/jquery.fileupload-process.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Processing Plugin 1.3.0
2+
* jQuery File Upload Processing Plugin 1.3.1
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2012, Sebastian Tschan
@@ -10,7 +10,7 @@
1010
*/
1111

1212
/* jshint nomen:false */
13-
/* global define, window */
13+
/* global define, require, window */
1414

1515
(function (factory) {
1616
'use strict';
@@ -20,6 +20,9 @@
2020
'jquery',
2121
'./jquery.fileupload'
2222
], factory);
23+
} else if (typeof exports === 'object') {
24+
// Node/CommonJS:
25+
factory(require('jquery'));
2326
} else {
2427
// Browser globals:
2528
factory(

app/assets/javascripts/jquery-fileupload/jquery.fileupload-ui.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload User Interface Plugin 9.6.0
2+
* jQuery File Upload User Interface Plugin 9.6.1
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -10,7 +10,7 @@
1010
*/
1111

1212
/* jshint nomen:false */
13-
/* global define, window */
13+
/* global define, require, window */
1414

1515
(function (factory) {
1616
'use strict';
@@ -24,6 +24,12 @@
2424
'./jquery.fileupload-video',
2525
'./jquery.fileupload-validate'
2626
], factory);
27+
} else if (typeof exports === 'object') {
28+
// Node/CommonJS:
29+
factory(
30+
require('jquery'),
31+
require('tmpl')
32+
);
2733
} else {
2834
// Browser globals:
2935
factory(

app/assets/javascripts/jquery-fileupload/jquery.fileupload-validate.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Validation Plugin 1.1.2
2+
* jQuery File Upload Validation Plugin 1.1.3
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2013, Sebastian Tschan
@@ -9,7 +9,7 @@
99
* http://www.opensource.org/licenses/MIT
1010
*/
1111

12-
/* global define, window */
12+
/* global define, require, window */
1313

1414
(function (factory) {
1515
'use strict';
@@ -19,6 +19,9 @@
1919
'jquery',
2020
'./jquery.fileupload-process'
2121
], factory);
22+
} else if (typeof exports === 'object') {
23+
// Node/CommonJS:
24+
factory(require('jquery'));
2225
} else {
2326
// Browser globals:
2427
factory(

app/assets/javascripts/jquery-fileupload/jquery.fileupload-video.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Video Preview Plugin 1.0.3
2+
* jQuery File Upload Video Preview Plugin 1.0.4
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2013, Sebastian Tschan
@@ -10,7 +10,7 @@
1010
*/
1111

1212
/* jshint nomen:false */
13-
/* global define, window, document */
13+
/* global define, require, window, document */
1414

1515
(function (factory) {
1616
'use strict';
@@ -21,6 +21,12 @@
2121
'load-image',
2222
'./jquery.fileupload-process'
2323
], factory);
24+
} else if (typeof exports === 'object') {
25+
// Node/CommonJS:
26+
factory(
27+
require('jquery'),
28+
require('load-image')
29+
);
2430
} else {
2531
// Browser globals:
2632
factory(

app/assets/javascripts/jquery-fileupload/jquery.fileupload.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.42.0
2+
* jQuery File Upload Plugin 5.42.2
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -10,7 +10,7 @@
1010
*/
1111

1212
/* jshint nomen:false */
13-
/* global define, window, document, location, Blob, FormData */
13+
/* global define, require, window, document, location, Blob, FormData */
1414

1515
(function (factory) {
1616
'use strict';
@@ -20,6 +20,12 @@
2020
'jquery',
2121
'jquery.ui.widget'
2222
], factory);
23+
} else if (typeof exports === 'object') {
24+
// Node/CommonJS:
25+
factory(
26+
require('jquery'),
27+
require('./vendor/jquery.ui.widget')
28+
);
2329
} else {
2430
// Browser globals:
2531
factory(window.jQuery);
@@ -1338,10 +1344,13 @@
13381344
_initDataAttributes: function () {
13391345
var that = this,
13401346
options = this.options,
1341-
clone = $(this.element[0].cloneNode(false));
1347+
clone = $(this.element[0].cloneNode(false)),
1348+
data = clone.data();
1349+
// Avoid memory leaks:
1350+
clone.remove();
13421351
// Initialize options set via HTML5 data-attributes:
13431352
$.each(
1344-
clone.data(),
1353+
data,
13451354
function (key, value) {
13461355
var dataAttributeName = 'data-' +
13471356
// Convert camelCase to hyphen-ated key:

app/assets/javascripts/jquery-fileupload/jquery.iframe-transport.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery Iframe Transport Plugin 1.8.2
2+
* jQuery Iframe Transport Plugin 1.8.3
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -9,13 +9,16 @@
99
* http://www.opensource.org/licenses/MIT
1010
*/
1111

12-
/* global define, window, document */
12+
/* global define, require, window, document */
1313

1414
(function (factory) {
1515
'use strict';
1616
if (typeof define === 'function' && define.amd) {
1717
// Register as an anonymous AMD module:
1818
define(['jquery'], factory);
19+
} else if (typeof exports === 'object') {
20+
// Node/CommonJS:
21+
factory(require('jquery'));
1922
} else {
2023
// Browser globals:
2124
factory(window.jQuery);

app/assets/javascripts/jquery-fileupload/vendor/jquery.ui.widget.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery UI - v1.11.1 - 2014-09-17
1+
/*! jQuery UI - v1.11.1+CommonJS - 2014-09-17
22
* http://jqueryui.com
33
* Includes: widget.js
44
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
@@ -8,6 +8,11 @@
88

99
// AMD. Register as an anonymous module.
1010
define([ "jquery" ], factory );
11+
12+
} else if (typeof exports === "object") {
13+
// Node/CommonJS:
14+
factory(require("jquery"));
15+
1116
} else {
1217

1318
// Browser globals

app/assets/javascripts/jquery-fileupload/vendor/load-image.all.min.js

100755100644
File mode changed.

0 commit comments

Comments
 (0)