Skip to content

Commit 889d4b5

Browse files
committed
Corrected a grammatical error in one of the sample comments.
1 parent 711a552 commit 889d4b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/pages/dynamic-samples/sample-reuse-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
}
7373
};
7474

75-
// Load a the data for a specific category, based on
75+
// Load the data for a specific category, based on
7676
// the URL passed in. Generate markup for the items in the
7777
// category, inject it into an embedded page, and then make
7878
// that page the current active page.

docs/pages/page-dynamic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ <h2>jQuery Mobile and Dynamic Page Generation</h2>
172172
<p>If preventDefault() is not called, changePage() will continue on processing as it normally does. One thing to point out about the data object that is passed into our callback, is that any changes you make to the toPage property, or options properties, will affect changePage() processing if preventDefault() is not called. So for example, if I wanted to redirect or map a specific URL to another internal/external page, my callback could simply set the data.toPage property in the callback to the URL or DOM element of the page to redirect to. Likewise, I could set, or unset any option from within my callback, and changePage() would use the new settings.</p>
173173
<p>So now that we know how to intercept changePage() calls, let's take a closer look at how this sample actually generates the markup for a page. Our example actually uses, or I should say, re-uses the same page to display each of the categories. Each time one of our special links is clicked, the function showCategory() gets invoked:</p>
174174
<pre><code>
175-
// Load a the data for a specific category, based on
175+
// Load the data for a specific category, based on
176176
// the URL passed in. Generate markup for the items in the
177177
// category, inject it into an embedded page, and then make
178178
// that page the current active page.

0 commit comments

Comments
 (0)