diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-04 16:40:47 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-04 16:40:47 +0200 |
| commit | 371cba4945b8cf1d5479d3a0a617b7d13420a664 (patch) | |
| tree | f819a42c19ce0feb5b0239a7e8f5bd9eb721cd14 | |
| parent | 08dfe39b91ef17357bfc91734266b560b463aaff (diff) | |
| parent | 4df31fdd704663107cf2e187e6b55483a0edafd3 (diff) | |
Merge branch 'eslint-undef' into fix-eslint-warnings-2
| -rw-r--r-- | js/cabinet.js | 2 | ||||
| -rw-r--r-- | js/cheesesteak.js | 4 | ||||
| -rw-r--r-- | js/pomf.js | 2 |
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 @@ -49,7 +49,7 @@ $(function() { }); uploadBtn.on('dragleave', function(e) { - node = e.target; + var node = e.target; do { if (node === this) { $(this).removeClass('drop'); |
