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

Commit 26d8fb5

Browse files
committed
Page: fix error in demo page
1 parent f7fed1e commit 26d8fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/navigation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ $.mobile._registerInternalEvents = function() {
367367
} );
368368

369369
//prefetch pages when anchors with data-prefetch are encountered
370-
$.mobile.document.delegate( ".ui-page", "pageshow.prefetch", function() {
370+
$.mobile.document.delegate( ".ui-page", "page.prefetch", function() {
371371
var urls = [],
372372
that = this;
373373
$( this ).find( "a:jqmData(prefetch)" ).each( function() {
@@ -377,7 +377,7 @@ $.mobile._registerInternalEvents = function() {
377377
if ( url && $.inArray( url, urls ) === -1 ) {
378378
urls.push( url );
379379

380-
that.closest( ".ui-pagecontainer" ).pagecontainer( "load", url, {
380+
$( that ).closest( ".ui-pagecontainer" ).pagecontainer( "load", url, {
381381
role: $link.attr( "data-" + $.mobile.ns + "rel" ),
382382
prefetch: true
383383
});

0 commit comments

Comments
 (0)