mirror of
https://github.com/thangisme/notes.git
synced 2025-01-05 06:16:38 -05:00
Fixed js browser incompatibility
(cherry picked from commit 86ff2dac05412a6ff994968c2be6122a7fcf85f9)
This commit is contained in:
parent
6bd43a1332
commit
a5842c0d7b
@ -26,7 +26,7 @@ jtd.onReady = function(ready) {
|
|||||||
function initNav() {
|
function initNav() {
|
||||||
jtd.addEvent(document, 'click', function(e){
|
jtd.addEvent(document, 'click', function(e){
|
||||||
var target = e.target;
|
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;
|
target = target.parentElement;
|
||||||
}
|
}
|
||||||
if (target) {
|
if (target) {
|
||||||
|
Loading…
Reference in New Issue
Block a user