function lbs_dispose() {
    document.body.removeEventListener("keydown", lbs_keyEvent);//remove key event listener
    
    var lbs_box = document.getElementById("lightboxesBox");
    lbs_box.parentElement.removeChild(lbs_box);  
    lbs_init();
}
//removes the lightbox and reinits the images
removes the lightbox and reinits the images
removes the lightbox and reinits the images
function lbs_dispose() {
    document.body.removeEventListener("keydown", lbs_keyEvent);
    var lbs_box = document.getElementById("lightboxesBox");
    lbs_box.parentElement.removeChild(lbs_box);  
    lbs_init();
}
function lbs_dispose ( ) { document . body . removeEventListener ( "keydown" , lbs_keyEvent ) ; var lbs_box = document . getElementById ( "lightboxesBox" ) ; lbs_box . parentElement . removeChild ( lbs_box ) ; lbs_init ( ) ; }
removes the lightbox and reinits the images
removes the lightbox and reinits the images
//remove key event listener