Remove duplicate event listeners
This commit is contained in:
parent
772db721a5
commit
32e428ff19
|
@ -86,6 +86,9 @@ function showGalleryImage(){
|
|||
|
||||
if(fullImg_preview != null){
|
||||
fullImg_preview.forEach(function function_name(e) {
|
||||
if (e.dataset.modded)
|
||||
return;
|
||||
e.dataset.modded = true;
|
||||
if(e && e.parentElement.tagName == 'DIV'){
|
||||
|
||||
e.style.cursor='pointer'
|
||||
|
|
Loading…
Reference in New Issue