From ffb3fcdf2022c891c9af29dd2f634574fb53d3ed Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 28 Jul 2023 23:31:57 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- grid-n-view.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/grid-n-view.js b/grid-n-view.js index 5325b92..3e11c24 100644 --- a/grid-n-view.js +++ b/grid-n-view.js @@ -688,8 +688,6 @@ var Gallery = { //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // XXX ignore click from blur... -// XXX might be a good idea to close on click outside the image... -// XXX esc from context menu closes view... var Lightbox = { dom: undefined, gallery: undefined, @@ -854,7 +852,7 @@ var setupGallery = function(gallery){ var setup = function(){ var galleries = document.body.querySelectorAll('.gallery') for(var gallery of galleries){ - // XXX this is wrong... + // XXX this is wrong -- handle multiple galleries... window.gallery = setupGallery(gallery) } // keyboard... document.addEventListener('keydown', function(evt){