function cloneGalleryItem(inst, element) {

    // Clone the element
    const clone = element.cloneNode(true)

    // Remove id attribute to avoid unwanted duplicates
    clone.removeAttribute('id')

    // Add a helper class
    clone.classList.add('mh-gallery-item--sort-helper')

    return clone
}
function cloneGalleryItem(inst, element) {

    
    const clone = element.cloneNode(true)

    
    clone.removeAttribute('id')

    
    clone.classList.add('mh-gallery-item--sort-helper')

    return clone
}
function cloneGalleryItem ( inst , element ) { // Clone the element const clone = element . cloneNode ( true ) // Remove id attribute to avoid unwanted duplicates clone . removeAttribute ( 'id' ) // Add a helper class clone . classList . add ( 'mh-gallery-item--sort-helper' ) return clone }
Clone behaviour for gallery items used when creating a helper for the
purpose of sorting.
Clone behaviour for gallery items used when creating a helper for the purpose of sorting .