summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEliot Whalan <ewhal@pantsu.cat>2015-09-24 09:26:06 +0200
committerEliot Whalan <ewhal@pantsu.cat>2015-09-24 09:26:06 +0200
commit16515a67ff2943a91c4e5678840933460b53e9c0 (patch)
tree1e09aaf2aab7c76089c07483dfdf500a1b32e691 /js
parentc76f70ccb65ced968535e37d8f11f2623bd37ed6 (diff)
Fix bug introduced in 6c82d36307. Newline broke JS
Diffstat (limited to 'js')
-rw-r--r--js/pomf.js4
1 files 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);
});
};