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

Commit 1dd73d1

Browse files
committed
we know that it's about content, simplify the option name
1 parent 2b90dd8 commit 1dd73d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/jquery.mobile.navigation.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ define( [
520520
// DEPRECATED
521521
reloadPage: false,
522522

523-
reloadContent: false,
523+
reload: false,
524524

525525
// By default we rely on the role defined by the @data-role attribute.
526526
role: undefined,
@@ -550,7 +550,7 @@ define( [
550550
fileUrl, dataUrl, pblEvent, triggerData;
551551

552552
// DEPRECATED reloadPage
553-
settings.reloadContent = settings.reloadPage;
553+
settings.reload = settings.reloadPage;
554554

555555
// If the caller provided data, and we're using "get" request,
556556
// append the data to the URL.
@@ -559,9 +559,9 @@ define( [
559559
settings.data = undefined;
560560
}
561561

562-
// If the caller is using a "post" request, reloadContent must be true
562+
// If the caller is using a "post" request, reload must be true
563563
if ( settings.data && settings.type === "post" ) {
564-
settings.reloadContent = true;
564+
settings.reload = true;
565565
}
566566

567567
// The absolute version of the URL minus any dialog/subcontent params.
@@ -594,7 +594,7 @@ define( [
594594
// and the caller did not indicate that we should force a
595595
// reload of the file, we are done. Resolve the deferrred so that
596596
// users can bind to .done on the promise
597-
if ( content.length && !settings.reloadContent ) {
597+
if ( content.length && !settings.reload ) {
598598
this._enhance( content, settings.role );
599599
deferred.resolve( absUrl, settings, content );
600600

0 commit comments

Comments
 (0)