// List.js utils var updatePagination = function(list) { pagination = list.listContainer.querySelector(".pagination"); if (pagination.childElementCount <= 1) { pagination.classList.add("hide"); } else { pagination.classList.remove("hide"); } }