summaryrefslogtreecommitdiff
path: root/js/cheesesteak.js
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-27 21:14:28 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-27 21:15:58 +0200
commitc2681b55d6e6643ab113e6f0945a443793a34fab (patch)
tree610efc848c20b91a0a61e8df8c3c55d796a66ed7 /js/cheesesteak.js
parentff40b2b485d71f2fdd1432f743ae4ee8567254b3 (diff)
Change double quotes to single quotes in cheesesteak.js
Fixes JSCS validateQuoteMarks warnings using Airbnb preset.
Diffstat (limited to 'js/cheesesteak.js')
-rw-r--r--js/cheesesteak.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/cheesesteak.js b/js/cheesesteak.js
index 1e60a56..6cdeb77 100644
--- a/js/cheesesteak.js
+++ b/js/cheesesteak.js
@@ -59,7 +59,7 @@
FileList.prototype.reduce = Array.prototype.reduce;
FileList.prototype.reduceRight = Array.prototype.reduceRight;
- Object.defineProperty(FileList.prototype, "size", {
+ Object.defineProperty(FileList.prototype, 'size', {
get: function getSize() {
return this.reduce(function(prev, curr) {
return prev + curr.size;
@@ -71,25 +71,25 @@
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];
+ return (this.size / Math.pow(1024, e)).toFixed(2) + ' ' + units[e];
}
};
- Object.defineProperty(FileList.prototype, "humanSize", humanSize);
- Object.defineProperty(File.prototype, "humanSize", humanSize);
+ Object.defineProperty(FileList.prototype, 'humanSize', humanSize);
+ Object.defineProperty(File.prototype, 'humanSize', humanSize);
var percentUploaded = {
get: function percentUploaded() {
return this.uploadedSize / this.size;
}
};
- Object.defineProperty(FileList.prototype, "percentUploaded",
+ Object.defineProperty(FileList.prototype, 'percentUploaded',
percentUploaded);
- Object.defineProperty(File.prototype, "percentUploaded", percentUploaded);
+ Object.defineProperty(File.prototype, 'percentUploaded', percentUploaded);
- Object.defineProperty(FileList.prototype, "uploadedSize", {
+ Object.defineProperty(FileList.prototype, 'uploadedSize', {
get: function getUploadedSize() {
return this.reduce(function(prev, curr) {
return prev + (curr.uploadedSize || 0);
@@ -98,7 +98,7 @@
});
/* Object URL stuff */
- Object.defineProperty(File.prototype, "url", {
+ Object.defineProperty(File.prototype, 'url', {
get: function getURL() {
return window.URL.createObjectURL(this);
}