summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-10-04 20:11:56 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-10-04 20:13:59 +0200
commitbcfadb7deb7c8930df3a5142d43097391f4e9fa1 (patch)
treea8857830088c427ce3817bf571b2b263b8f401a1
parent9bdedb32e61159a78fd9717fdaacf63405fe9e98 (diff)
Revert "Remove previously added missing brace/bracket commas"
The unofficial Airbnb config (eslint-config-airbnb-es5) previously thought this to be an error and so it was removed. The official Airbnb config (airbnb/legacy) now works just like the ES6 config (airbnb). Fixes ESLint comma-dangle errors using airbnb/legacy config. This reverts commit 49d58d98f5866bb9ccc9069a16d131486f04bba2.
-rw-r--r--js/cheesesteak.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/cheesesteak.js b/js/cheesesteak.js
index 4809ca3..7280177 100644
--- a/js/cheesesteak.js
+++ b/js/cheesesteak.js
@@ -64,18 +64,18 @@
return this.reduce(function(prev, curr) {
return prev + curr.size;
}, 0);
- }
+ },
});
// Utility to convert bytes into human units
var humanSize = {
get: function humanSize() {
var units = [
- 'B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'
+ 'B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB',
];
var e = Math.floor(Math.log(this.size) / Math.log(1024));
return (this.size / Math.pow(1024, e)).toFixed(2) + ' ' + units[e];
- }
+ },
};
Object.defineProperty(FileList.prototype, 'humanSize', humanSize);
Object.defineProperty(File.prototype, 'humanSize', humanSize);
@@ -83,7 +83,7 @@
var percentUploaded = {
get: function percentUploaded() {
return this.uploadedSize / this.size;
- }
+ },
};
Object.defineProperty(FileList.prototype, 'percentUploaded',
percentUploaded);
@@ -94,14 +94,14 @@
return this.reduce(function(prev, curr) {
return prev + (curr.uploadedSize || 0);
}, 0);
- }
+ },
});
// Object URL stuff
Object.defineProperty(File.prototype, 'url', {
get: function getURL() {
return window.URL.createObjectURL(this);
- }
+ },
});
File.revokeURL = function revokeURL(url) {
window.URL.revokeObjectURL(url);
@@ -130,7 +130,7 @@
this.opts = merge({
field: 'files[]',
method: 'POST',
- data: {}
+ data: {},
}, request);
};