From a5842c0d7bca8c2e2a55b506d8cb71d9a377b810 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Sat, 10 Aug 2019 23:36:14 +0200 Subject: [PATCH] Fixed js browser incompatibility (cherry picked from commit 86ff2dac05412a6ff994968c2be6122a7fcf85f9) --- assets/js/just-the-docs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/just-the-docs.js b/assets/js/just-the-docs.js index d8d1a51..f475a41 100644 --- a/assets/js/just-the-docs.js +++ b/assets/js/just-the-docs.js @@ -26,7 +26,7 @@ jtd.onReady = function(ready) { function initNav() { jtd.addEvent(document, 'click', function(e){ var target = e.target; - while (target && target.classList && !target.classList.contains('nav-list-expander')) { + while (target && !(target.classList && target.classList.contains('nav-list-expander'))) { target = target.parentElement; } if (target) {