From 2c7ced1f503299e6ede6d3ef2b5e115318f5401f Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Sun, 27 Sep 2015 18:27:24 +0000 Subject: Fix redeclaration of "res" variable in pomf.js Fixes ESLint warning no-redeclare. --- js/pomf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/pomf.js b/js/pomf.js index f4fbeb2..2e810de 100644 --- a/js/pomf.js +++ b/js/pomf.js @@ -139,10 +139,10 @@ $(function() { totalName.html('Grabbing URLs…'); }); - up.on('load', function(e, res) { + up.on('load', function(e, response) { switch (e.target.status) { case 200: - var res = JSON.parse(res); + var res = JSON.parse(response); if (!res.success) { uploadFiles.addClass('error'); totalName.text(UPLOAD_ERR_FAILED); -- cgit v1.2.3