summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-27 21:07:38 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-27 21:10:02 +0200
commitff40b2b485d71f2fdd1432f743ae4ee8567254b3 (patch)
tree2a62f023c17103e4a1059544ddc684d955fabe49
parenta17c4461869fc93e48c00cbb12dc588aa9b25f89 (diff)
Fix illegal trailing whitespace in JavaScript
Fixes JSCS disallowTrailingWhitespace warnings using Airbnb preset.
-rw-r--r--js/cheesesteak.js2
-rw-r--r--js/pomf.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/cheesesteak.js b/js/cheesesteak.js
index 75f837e..1e60a56 100644
--- a/js/cheesesteak.js
+++ b/js/cheesesteak.js
@@ -162,7 +162,7 @@
if (e.lengthComputable) {
size = e.loaded;
// We know the size of the files, the order they're in, and how
- // much we've uploaded. Based on this data, we can do some magic
+ // much we've uploaded. Based on this data, we can do some magic
// to figure out which file we're on, and how much we've uploaded
// of that file.
// TODO: This math has trouble on later uploads. Leak somewhere
diff --git a/js/pomf.js b/js/pomf.js
index 5690e60..5a359da 100644
--- a/js/pomf.js
+++ b/js/pomf.js
@@ -121,7 +121,7 @@ $(function() {
var hits = {};
files.forEach(function(file) {
++hits[file.name];
- var row = $($('li[data-filename="' +
+ var row = $($('li[data-filename="' +
escape(file.name) + '"]')[hits[file.name] || 0]);
fn.call(row, row, file, files);
});