Skip to content

Commit 21377dc

Browse files
committed
API Doc: Bug Fix
1 parent ee22a14 commit 21377dc

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

entries/hashtag.xml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@
66
<p>The jQuery Mobile <code>.hashchange()</code> event handler enables very basic bookmarkable #hash history by providing a callback function bound to the window.onhashchange event. The onhashchange event fires when a window's hash changes.</p>
77
<p>In browsers that support it, the native HTML5 window.onhashchange event is used. In IE6/7 (and IE8 operating in "IE7 compatibility" mode), a hidden Iframe is created to allow the back button and hash-based history to work.</p>
88
<xi:include href="../includes/core-extension-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
9-
</longdesc>
10-
<added>1.0</added>
11-
<signature>
12-
<argument name="callback" type="Function" optional="true">
13-
<desc>A function to invoke after the onhashchange event is fired.</desc>
14-
</argument>
15-
</signature>
16-
<pre>
9+
<pre>
1710
<code><![CDATA[
1811
$(function(){
1912
// Bind an event to window.onhashchange that, when the hash changes, gets the
@@ -34,9 +27,17 @@
3427
// the event now, to handle the hash the page may have loaded with.
3528
$(window).hashchange();
3629
});
37-
]]></code></pre>
38-
<p>Click, and watch as the magic happens!
39-
<iframe src="/resources/hashtag/example1.html" style="width:100%;height:90px;border:0px"></iframe>
40-
</p>
30+
]]></code>
31+
</pre>
32+
<p>Click, and watch as the magic happens!
33+
<iframe src="/resources/hashtag/example1.html" style="width:100%;height:90px;border:0px"></iframe>
34+
</p>
35+
</longdesc>
36+
<added>1.0</added>
37+
<signature>
38+
<argument name="callback" type="Function" optional="true">
39+
<desc>A function to invoke after the onhashchange event is fired.</desc>
40+
</argument>
41+
</signature>
4142
<category slug="events"/>
4243
</entry>

0 commit comments

Comments
 (0)