Better fromPage.container.dataset.currentPage = false , it is faster than delete xxx