cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-22 21:40:48 +03:00
parent 1489ba0c0a
commit 1bf66706c0

View File

@ -7,7 +7,6 @@
// - make the gallery into a web component
//
//
//
//=====================================================================
@ -17,7 +16,7 @@
// This compansates for any resize rounding errors in patchFlexRows(..).
var PATCH_MARGIN = 2
var patchFlexRows =
ar patchFlexRows =
function(elems,
prevent_row_expansion=false,
last_row_resize=1.5,
@ -592,13 +591,7 @@ var Gallery = {
get urls(){
return this.images
.map(function(img){
// XXX not sure if we should remove the preview dir...
return img.src }) },
/*/
return img.src
// remove preview dir...
.replace(/\/[0-9]+px\//, '/') }) },
//*/
get marked(){
return [...this.dom.querySelectorAll('.images img.marked')] },