Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit d91c529

Browse files
simonratnerjohnbender
authored andcommitted
Update cached copy of data-url when page already exists in DOM.
1 parent e1d8f3f commit d91c529

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,8 @@ define( [
666666
// attribute and in need of enhancement.
667667
if ( page.length === 0 && dataUrl && !path.isPath( dataUrl ) ) {
668668
page = settings.pageContainer.children( "#" + dataUrl )
669-
.attr( "data-" + $.mobile.ns + "url", dataUrl );
669+
.attr( "data-" + $.mobile.ns + "url", dataUrl )
670+
.jqmData( "url", dataUrl );
670671
}
671672

672673
// If we failed to find a page in the DOM, check the URL to see if it

0 commit comments

Comments
 (0)