From 08dfe39b91ef17357bfc91734266b560b463aaff Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Mon, 28 Sep 2015 17:05:14 +0000 Subject: Fix assignments to function parameters in JavaScript Fixes ESLint no-param-reassing warning. --- js/cheesesteak.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/cheesesteak.js') 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); -- cgit v1.2.3