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

Commit fe33ead

Browse files
committed
pass the trigger data absUrl as an option and not in the object data
1 parent b2f4a35 commit fe33ead

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/jquery.mobile.navigation.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,8 @@ define( [
767767

768768
// store the original absolute url so that it can be provided
769769
// to events in the triggerData of the subsequent changePage call
770-
content.data( "absUrl", triggerData.absUrl );
770+
options.absUrl = triggerData.absUrl;
771+
771772
this.change( content, options );
772773
}, this));
773774

@@ -809,7 +810,7 @@ define( [
809810
} else {
810811
// if the toPage is a jQuery object grab the absolute url stored
811812
// in the loadPage callback where it exists
812-
triggerData.absUrl = toPage.data( "absUrl" );
813+
triggerData.absUrl = settings.absUrl;
813814
}
814815

815816
// Let listeners know we're about to change the current page.

0 commit comments

Comments
 (0)