diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-11-18 12:54:42 +0100 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-11-18 12:54:42 +0100 |
| commit | f413dc9a1b944fd653c3bc089516c3363fb57857 (patch) | |
| tree | ded5b34a866b3acacd09108ee76a192b0d503df5 /js | |
| parent | 251b4d789d13e39436937e98500c5c5e2ab4d427 (diff) | |
Remove unused JavaScript variables (no-unused-vars)
Quoting ESLint:
> Variables that are declared and not used anywhere in the code are most
> likely an error due to incomplete refactoring. Such variables take up
> space in the code and can lead to confusion by readers.
This commit removes them. Fixes ESLint no-unused-vars errors using
airbnb/legacy config.
Suggested-by: marc <mharnos@gmail.com>
Diffstat (limited to 'js')
| -rw-r--r-- | js/cheesesteak.js | 2 | ||||
| -rw-r--r-- | js/pomf.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/cheesesteak.js b/js/cheesesteak.js index ba65e48..905c5f3 100644 --- a/js/cheesesteak.js +++ b/js/cheesesteak.js @@ -160,7 +160,7 @@ xhr.open(opts.method, this.url, true); - function initProgressBar(evt) { + function initProgressBar() { for (i = 0; i < len; i++) { files[i].uploadedSize = 0; } @@ -125,7 +125,7 @@ $(function() { } up.on('uploadprogress', function(evt, files) { - eachRow(files, function(row, file, files) { + eachRow(files, function(row, file) { $('.progress-inner', row).width((file.percentUploaded * 100) + '%'); }); |
