Skip to content

Commit d509185

Browse files
committed
Minor JSLint compliance updates.
1 parent 0b27e07 commit d509185

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

js/jquery.fileupload-ui.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload User Interface Plugin 6.8
2+
* jQuery File Upload User Interface Plugin 6.8.1
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -138,8 +138,7 @@
138138
// Callback for successful uploads:
139139
done: function (e, data) {
140140
var that = $(this).data('fileupload'),
141-
template,
142-
preview;
141+
template;
143142
if (data.context) {
144143
data.context.each(function (index) {
145144
var file = ($.isArray(data.result) &&
@@ -525,8 +524,7 @@
525524
},
526525

527526
_transition: function (node) {
528-
var that = this,
529-
dfd = $.Deferred();
527+
var dfd = $.Deferred();
530528
if ($.support.transition && node.hasClass('fade')) {
531529
node.bind(
532530
$.support.transition.end,

js/jquery.fileupload.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.11.1
2+
* jQuery File Upload Plugin 5.11.2
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -209,9 +209,11 @@
209209
var formData;
210210
if (typeof options.formData === 'function') {
211211
return options.formData(options.form);
212-
} else if ($.isArray(options.formData)) {
212+
}
213+
if ($.isArray(options.formData)) {
213214
return options.formData;
214-
} else if (options.formData) {
215+
}
216+
if (options.formData) {
215217
formData = [];
216218
$.each(options.formData, function (name, value) {
217219
formData.push({name: name, value: value});

js/locale.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin Localization Example 6.5
2+
* jQuery File Upload Plugin Localization Example 6.5.1
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2012, Sebastian Tschan
@@ -9,6 +9,8 @@
99
* http://www.opensource.org/licenses/MIT
1010
*/
1111

12+
/*global window */
13+
1214
window.locale = {
1315
"fileupload": {
1416
"errors": {

0 commit comments

Comments
 (0)