cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1489ba0c0a
commit
1bf66706c0
@ -7,7 +7,6 @@
|
|||||||
// - make the gallery into a web component
|
// - make the gallery into a web component
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
|
|
||||||
|
|
||||||
@ -17,7 +16,7 @@
|
|||||||
// This compansates for any resize rounding errors in patchFlexRows(..).
|
// This compansates for any resize rounding errors in patchFlexRows(..).
|
||||||
var PATCH_MARGIN = 2
|
var PATCH_MARGIN = 2
|
||||||
|
|
||||||
var patchFlexRows =
|
ar patchFlexRows =
|
||||||
function(elems,
|
function(elems,
|
||||||
prevent_row_expansion=false,
|
prevent_row_expansion=false,
|
||||||
last_row_resize=1.5,
|
last_row_resize=1.5,
|
||||||
@ -592,13 +591,7 @@ var Gallery = {
|
|||||||
get urls(){
|
get urls(){
|
||||||
return this.images
|
return this.images
|
||||||
.map(function(img){
|
.map(function(img){
|
||||||
// XXX not sure if we should remove the preview dir...
|
|
||||||
return img.src }) },
|
return img.src }) },
|
||||||
/*/
|
|
||||||
return img.src
|
|
||||||
// remove preview dir...
|
|
||||||
.replace(/\/[0-9]+px\//, '/') }) },
|
|
||||||
//*/
|
|
||||||
|
|
||||||
get marked(){
|
get marked(){
|
||||||
return [...this.dom.querySelectorAll('.images img.marked')] },
|
return [...this.dom.querySelectorAll('.images img.marked')] },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user