aboutsummaryrefslogtreecommitdiff
path: root/ui/static/js/mouse_handler.js
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net> 2018-10-08 21:08:43 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net> 2018-10-08 21:09:25 -0700
commitc1fe84521ec43fd35dd4a6ff4fb9aa9ffb85d394 (patch)
treec5964a2ce324e7eb9b06aae919909f217cdcba55 /ui/static/js/mouse_handler.js
parent3daef197e98ca3e85c7043dff19081b12bb55d6c (diff)
downloadv2-c1fe84521ec43fd35dd4a6ff4fb9aa9ffb85d394.tar.gz
v2-c1fe84521ec43fd35dd4a6ff4fb9aa9ffb85d394.tar.zst
v2-c1fe84521ec43fd35dd4a6ff4fb9aa9ffb85d394.zip
Fix jshint error introduced in commit d4c1677
Diffstat (limited to 'ui/static/js/mouse_handler.js')
-rw-r--r--ui/static/js/mouse_handler.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/static/js/mouse_handler.js b/ui/static/js/mouse_handler.js
index fed4081a..8b42a562 100644
--- a/ui/static/js/mouse_handler.js
+++ b/ui/static/js/mouse_handler.js
@@ -3,7 +3,10 @@ class MouseHandler {
let elements = document.querySelectorAll(selector);
elements.forEach((element) => {
element.onclick = (event) => {
- noPreventDefault || event.preventDefault();
+ if (! noPreventDefault) {
+ event.preventDefault();
+ }
+
callback(event);
};
});