summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-10-04 16:40:47 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-10-04 16:40:47 +0200
commit371cba4945b8cf1d5479d3a0a617b7d13420a664 (patch)
treef819a42c19ce0feb5b0239a7e8f5bd9eb721cd14
parent08dfe39b91ef17357bfc91734266b560b463aaff (diff)
parent4df31fdd704663107cf2e187e6b55483a0edafd3 (diff)
Merge branch 'eslint-undef' into fix-eslint-warnings-2
-rw-r--r--js/cabinet.js2
-rw-r--r--js/cheesesteak.js4
-rw-r--r--js/pomf.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/js/cabinet.js b/js/cabinet.js
index 74a250a..45f1295 100644
--- a/js/cabinet.js
+++ b/js/cabinet.js
@@ -23,7 +23,7 @@
/* jshint browser:true, jquery:true */
(function($) {
$.hasFileAPI = function hasFileAPI() {
- return (window.FormData !== undefined);
+ return Boolean(window.FormData);
};
$.fn.cabinet = function(uploadInput) {
diff --git a/js/cheesesteak.js b/js/cheesesteak.js
index 6e5a3ad..4809ca3 100644
--- a/js/cheesesteak.js
+++ b/js/cheesesteak.js
@@ -23,7 +23,7 @@
/* jshint browser:true, jquery:true */
(function() {
// Lightweight EventEmitter implementation
- EventEmitter = function() {};
+ var EventEmitter = function() {};
EventEmitter.prototype.on = function(evt, fn) {
this._events = this._events || {};
@@ -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');