From 16515a67ff2943a91c4e5678840933460b53e9c0 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 24 Sep 2015 17:26:06 +1000 Subject: Fix bug introduced in 6c82d36307. Newline broke JS --- js/pomf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/pomf.js b/js/pomf.js index 560dd8e..c2e6264 100644 --- a/js/pomf.js +++ b/js/pomf.js @@ -117,8 +117,8 @@ $(function() { var hits = {}; files.forEach(function(file) { ++hits[file.name] || (hits[file.name] = 0); - var row = $($('li[data-filename="' + escape(file.name) + '"]') + - [hits[file.name] || 0]); + var row = $($('li[data-filename="' + + escape(file.name) + '"]')[hits[file.name] || 0]); fn.call(row, row, file, files); }); }; -- cgit v1.2.3