Skip to content

Navigation: Move pagecreate event to page widget #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion entries/page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<event name="create">
<argument name="event" type="Event">
</argument>
<desc><p>Triggered after a page has been created. jQuery Mobile will use this event to apply its enhancements to the page.</p>
<desc><p>Triggered after a page has been created and enhancements to the page have been made.</p>
</desc>
</event>
</events>
Expand Down
9 changes: 2 additions & 7 deletions entries/pagecreate.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<?xml version="1.0"?>
<entry name="pagecreate" type="event" return="">
<title>pagecreate</title>
<desc>Triggered when the page has been created in the DOM (via ajax or other) but before all widgets have had an opportunity to enhance the contained markup.</desc>
<desc>Triggered when the page has been created in the DOM (via ajax or other) and after all widgets have had an opportunity to enhance the contained markup.</desc>
<longdesc>
<p>This event is most useful for user's wishing to create their own custom widgets for child markup enhancement as the jQuery Mobile widgets do.</p>
<pre><code><![CDATA[
$( "#aboutPage" ).on( "pagecreate", function( event ) {
$.( ":jqmData(role='sweet-plugin')" ).sweetPlugin();
});
]]></code></pre>
<p><strong>Note:</strong>This event is part of the <code><a href="/page/">page</a></code> widget as of jQuery Mobile 1.4.0. Please consult the documentation for the page widget's <a href="/page/#event-create">implementation</a>.</p>
</longdesc>
<added>1.0</added>
<signature>
Expand Down