Skip to content

Commit

Permalink
Merge pull request #317 from fedwiki/ward/page-key
Browse files Browse the repository at this point in the history
duplicate pageKey in dom native data attribute
  • Loading branch information
paul90 authored May 1, 2024
2 parents 7dcaa55 + 63b0559 commit 25de8d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/refresh.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,9 @@ rebuildPage = (pageObject, $page) ->
promise

buildPage = (pageObject, $page) ->
$page.data('key', lineup.addPage(pageObject))
pageKey =lineup.addPage(pageObject)
$page.data('key', pageKey)
$page.get(0).dataset.key = pageKey
rebuildPage(pageObject, $page)

newFuturePage = (title, create) ->
Expand Down

0 comments on commit 25de8d5

Please sign in to comment.