summaryrefslogtreecommitdiff
path: root/js/cheesesteak.js
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 19:05:14 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 19:12:22 +0200
commit08dfe39b91ef17357bfc91734266b560b463aaff (patch)
treed8de1876c0666c03ab2b1d5e30dc360fc39b9267 /js/cheesesteak.js
parent043967a00987a840dffb3a5845246e5eef5a033b (diff)
Fix assignments to function parameters in JavaScript
Fixes ESLint no-param-reassing warning.
Diffstat (limited to 'js/cheesesteak.js')
-rw-r--r--js/cheesesteak.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/cheesesteak.js b/js/cheesesteak.js
index ea3dc19..6e5a3ad 100644
--- a/js/cheesesteak.js
+++ b/js/cheesesteak.js
@@ -125,13 +125,13 @@
this.url = url;
this.files = files;
- opts = opts || {};
+ var request = opts || {};
this.opts = merge({
field: 'files[]',
method: 'POST',
data: {}
- }, opts);
+ }, request);
};
FileListUploader.prototype = Object.create(EventEmitter.prototype);