From ff40b2b485d71f2fdd1432f743ae4ee8567254b3 Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Sun, 27 Sep 2015 19:07:38 +0000 Subject: Fix illegal trailing whitespace in JavaScript Fixes JSCS disallowTrailingWhitespace warnings using Airbnb preset. --- js/cheesesteak.js | 2 +- js/pomf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'js') 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); }); -- cgit v1.2.3