Skip to content

Commit 12d1e25

Browse files
committed
A working version of the code
Since Live was depricated you need to link to go through the $(document) object or this event will never fire. Example: http://jsfiddle.net/digiguru/qR9y7/3/
1 parent 35cb262 commit 12d1e25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/pageinit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<longdesc>
66
<p>We recommend binding to this event instead of DOM ready() because this will work regardless of whether the page is loaded directly or if the content is pulled into another page as part of the Ajax navigation system.</p>
77
<pre><code>
8-
$( "#aboutPage" ).on( "pageinit", function( event ) {
8+
$( document ).on( "pageinit", "#aboutPage", function( event ) {
99
alert( "This page was just enhanced by jQuery Mobile!" );
1010
});
1111
</code></pre>

0 commit comments

Comments
 (0)