diff options
Diffstat (limited to 'js')
| -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'); |
