Skip to content

Commit 8afd090

Browse files
committed
All: Remove the detach-shorthand note
1 parent ea70133 commit 8afd090

25 files changed

Lines changed: 0 additions & 27 deletions

entries/blur.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
<p>After this code executes, clicks on <samp>Trigger the handler</samp> will also alert the message.</p>
4646
<p>The <code>blur</code> event does not bubble in Internet Explorer. Therefore, scripts that rely on event delegation with the <code>blur</code> event will not work consistently across browsers. As of version 1.4.2, however, jQuery works around this limitation by mapping <code>blur</code> to the <code>focusout</code> event in its event delegation methods, <a href="/live/"><code>.live()</code></a> and <a href="/delegate/"><code>.delegate()</code></a>.</p>
4747
</longdesc>
48-
<note id="detach-shorthand" type="additional" data-event="blur"/>
4948
<example>
5049
<desc>To trigger the blur event on all paragraphs:</desc>
5150
<code><![CDATA[

entries/change.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ $( "#other" ).click(function() {
5656
<p><strong>Note: </strong>Changing the value of an input element using JavaScript, using <a href="/val"><code>.val()</code></a> for example, won't fire the event.</p>
5757
</div>
5858
</longdesc>
59-
<note id="detach-shorthand" type="additional" data-event="change"/>
6059
<example>
6160
<desc>Attaches a change event to the select that gets the text for each selected option and writes them in the div. It then triggers the event for the initial text draw.</desc>
6261
<code><![CDATA[

entries/click.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ $( "#other" ).click(function() {
6262
</ul>
6363
<p>This is usually the desired sequence before taking an action. If this is not required, the <code>mousedown</code> or <code>mouseup</code> event may be more suitable.</p>
6464
</longdesc>
65-
<note id="detach-shorthand" type="additional" data-event="click"/>
6665
<example>
6766
<desc>Hide paragraphs on a page when they are clicked:</desc>
6867
<code><![CDATA[

entries/contextmenu.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ $( "#target" ).contextmenu(function() {
4646
$( "#target" ).contextmenu();
4747
</code></pre>
4848
</longdesc>
49-
<note id="detach-shorthand" type="additional" data-event="contextmenu"/>
5049
<example>
5150
<desc>To show a "Hello World!" alert box when the contextmenu event is triggered on a paragraph on the page:</desc>
5251
<code><![CDATA[

entries/dblclick.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ $( "#other" ).click(function() {
6565
<p>It is inadvisable to bind handlers to both the <code>click</code> and <code>dblclick</code> events for the same element. The sequence of events triggered varies from browser to browser, with some receiving two <code>click</code> events before the <code>dblclick</code> and others only one. Double-click sensitivity (maximum time between clicks that is detected as a double click) can vary by operating system and browser, and is often user-configurable.
6666
</p>
6767
</longdesc>
68-
<note id="detach-shorthand" type="additional" data-event="dblclick"/>
6968
<example>
7069
<desc>To bind a "Hello World!" alert box to the dblclick event on every paragraph on the page:</desc>
7170
<code><![CDATA[

entries/error.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ $( "#book" )
4545
</div>
4646
<p>Note: A jQuery <code>error</code> event handler should not be attached to the <code>window</code> object. The browser fires the <code>window</code>'s <code>error</code> event when a script error occurs. However, the window <code>error</code> event receives different arguments and has different return value requirements than conventional event handlers. Use <code>window.onerror</code> instead.</p>
4747
</longdesc>
48-
<note id="detach-shorthand" type="additional" data-event="error"/>
4948
<example>
5049
<desc>To replace all the missing images with another, you can update the <code>src</code> attribute inside the callback passed to <code>.error()</code>. Be sure that the replacement image exists; otherwise the <code>error</code> event will be triggered indefinitely.</desc>
5150
<code><![CDATA[

entries/focus.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ $( "#other" ).click(function() {
6060
<p>After this code executes, clicks on <samp>Trigger the handler</samp> will also alert the message.</p>
6161
<p>The <code>focus</code> event does not bubble in Internet Explorer. Therefore, scripts that rely on event delegation with the <code>focus</code> event will not work consistently across browsers. As of version 1.4.2, however, jQuery works around this limitation by mapping <code>focus</code> to the <code>focusin</code> event in its event delegation methods, <a href="/live/"><code>.live()</code></a> and <a href="/delegate/"><code>.delegate()</code></a>.</p>
6262
</longdesc>
63-
<note id="detach-shorthand" type="additional" data-event="focus"/>
6463
<example>
6564
<desc>Fire focus.</desc>
6665
<css><![CDATA[

entries/focusin.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<p>The <code>focusin</code> event is sent to an element when it, or any element inside of it, gains focus. This is distinct from the <a href="/focus/">focus</a> event in that it supports detecting the focus event on parent elements (in other words, it supports event bubbling).</p>
2828
<p>This event will likely be used together with the <a href="/focusout/">focusout</a> event.</p>
2929
</longdesc>
30-
<note id="detach-shorthand" type="additional" data-event="focusin"/>
3130
<example>
3231
<desc>Watch for a focus to occur within the paragraphs on the page.</desc>
3332
<css><![CDATA[

entries/focusout.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<p>The <code>focusout</code> event is sent to an element when it, or any element inside of it, loses focus. This is distinct from the <a href="/blur/">blur</a> event in that it supports detecting the loss of focus on descendant elements (in other words, it supports event bubbling).</p>
2828
<p>This event will likely be used together with the <a href="/focusin/">focusin</a> event.</p>
2929
</longdesc>
30-
<note id="detach-shorthand" type="additional" data-event="focusout"/>
3130
<example>
3231
<desc>Watch for a loss of focus to occur inside paragraphs and note the difference between the <code>focusout</code> count and the <code>blur</code> count. (The <code>blur</code> count does not change because those events do not bubble.)</desc>
3332
<css><![CDATA[

entries/keydown.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ $( "#other" ).click(function() {
5454
<p>If key presses anywhere need to be caught (for example, to implement global shortcut keys on a page), it is useful to attach this behavior to the <code>document</code> object. Because of event bubbling, all key presses will make their way up the DOM to the <code>document</code> object unless explicitly stopped.</p>
5555
<p>To determine which key was pressed, examine the <a href="/category/events/event-object/">event object</a> that is passed to the handler function. While browsers use differing properties to store this information, jQuery normalizes the <code>.which</code> property so you can reliably use it to retrieve the key code. This code corresponds to a key on the keyboard, including codes for special keys such as arrows. For catching actual text entry, <code>.keypress()</code> may be a better choice.</p>
5656
</longdesc>
57-
<note id="detach-shorthand" type="additional" data-event="keydown"/>
5857
<example>
5958
<desc>Show the event object for the keydown handler when a key is pressed in the input.</desc>
6059
<code><![CDATA[

0 commit comments

Comments
 (0)