diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-28 21:14:49 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-28 21:16:39 +0200 |
| commit | 11e9d2d0e6d7266ff119fdab9947e879192bd75e (patch) | |
| tree | 41be7380a334a15f5e456581205ed57511311154 | |
| parent | 187f3000385f136c8766fbfb2d18d24832ecf4b5 (diff) | |
Add missing var declarations to undefined variables
Fixes ESLint no-undef warnings using Airbnb ES5 config.
| -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 ea3dc19..1ee32b8 100644 --- a/js/cheesesteak.js +++ b/js/cheesesteak.js @@ -160,7 +160,7 @@ xhr.upload.addEventListener('progress', function(e) { if (e.lengthComputable) { - size = e.loaded; + var size = e.loaded; /** * We know the size of the files, the order they're in, and how @@ -49,7 +49,7 @@ $(function() { }); uploadBtn.on('dragleave', function(e) { - node = e.target; + var node = e.target; do { if (node === this) { $(this).removeClass('drop'); |
