diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-28 19:05:14 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-28 19:12:22 +0200 |
| commit | 08dfe39b91ef17357bfc91734266b560b463aaff (patch) | |
| tree | d8de1876c0666c03ab2b1d5e30dc360fc39b9267 /js/cheesesteak.js | |
| parent | 043967a00987a840dffb3a5845246e5eef5a033b (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.js | 4 |
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); |
