summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 21:14:49 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 21:16:39 +0200
commit11e9d2d0e6d7266ff119fdab9947e879192bd75e (patch)
tree41be7380a334a15f5e456581205ed57511311154
parent187f3000385f136c8766fbfb2d18d24832ecf4b5 (diff)
Add missing var declarations to undefined variables
Fixes ESLint no-undef warnings using Airbnb ES5 config.
-rw-r--r--js/cheesesteak.js2
-rw-r--r--js/pomf.js2
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
diff --git a/js/pomf.js b/js/pomf.js
index 7dd44ef..71972e1 100644
--- a/js/pomf.js
+++ b/js/pomf.js
@@ -49,7 +49,7 @@ $(function() {
});
uploadBtn.on('dragleave', function(e) {
- node = e.target;
+ var node = e.target;
do {
if (node === this) {
$(this).removeClass('drop');