You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<desc><![CDATA[Remove all event handlers previously attached using <code>.live()</code> from the elements.]]></desc>
6
-
<signature>
7
-
<added>1.4.1</added>
8
-
</signature>
9
-
<longdesc>
10
-
<p>Any handler that has been attached with <code>.live()</code> can be removed with <code>.die()</code>. This method is analogous to calling <code>.unbind()</code> with no arguments, which is used to remove all handlers attached with <code>.bind()</code>.
11
-
See the discussions of <code>.live()</code> and <code>.unbind()</code> for further details.</p>
12
-
<p><strong>As of jQuery 1.7</strong>, use of <code>.die()</code> (and its complementary method, <code>.live()</code>) is not recommended. Instead, use <ahref="http://api.jquery.com/off/"><code>.off()</code></a> to remove event handlers bound with <ahref="http://api.jquery.com/on/"><code>.on()</code></a></p>
13
-
<p><strong>Note:</strong> In order for .die() to function correctly, the selector used with it must match exactly the selector initially used with .live().</p>
<desc>The function that is no longer to be executed.</desc>
28
-
</argument>
29
-
</signature>
30
-
<signature>
31
-
<added>1.4.3</added>
32
-
<argumentname="events"type="PlainObject">
33
-
<desc>A map of one or more event types, such as <code>click</code> or <code>keydown</code> and their corresponding functions that are no longer to be executed.</desc>
34
-
</argument>
35
-
</signature>
36
-
<longdesc>
37
-
<p>Any handler that has been attached with <code>.live()</code> can be removed with <code>.die()</code>. This method is analogous to <code>.unbind()</code>, which is used to remove handlers attached with <code>.bind()</code>.
38
-
See the discussions of <code>.live()</code> and <code>.unbind()</code> for further details.</p>
39
-
<p><strong>Note:</strong> In order for <code>.die()</code> to function correctly, the selector used with it must match exactly the selector initially used with <code>.live()</code>.</p>
40
-
</longdesc>
41
-
<example>
42
-
<desc>Can bind and unbind events to the colored button.</desc>
<desc>The function that is no longer to be executed.</desc>
15
+
</argument>
16
+
</signature>
17
+
<signature>
18
+
<added>1.4.3</added>
19
+
<argumentname="events"type="PlainObject">
20
+
<desc>A map of one or more event types, such as <code>click</code> or <code>keydown</code> and their corresponding functions that are no longer to be executed.</desc>
21
+
</argument>
22
+
</signature>
23
+
<longdesc>
24
+
<p>Any handler that has been attached with <code>.live()</code> can be removed with <code>.die()</code>. This method is analogous to calling <code>.unbind()</code> with no arguments, which is used to remove all handlers attached with <code>.bind()</code>.
25
+
See the discussions of <code>.live()</code> and <code>.unbind()</code> for further details.</p>
26
+
<p>If used without an argument, .die() removes <em>all</em> event handlers previously attached using <code>.live()</code> from the elements.</p>
27
+
<p><strong>As of jQuery 1.7</strong>, use of <code>.die()</code> (and its complementary method, <code>.live()</code>) is not recommended. Instead, use <ahref="http://api.jquery.com/off/"><code>.off()</code></a> to remove event handlers bound with <ahref="http://api.jquery.com/on/"><code>.on()</code></a></p>
28
+
<p><strong>Note:</strong> In order for .die() to function correctly, the selector used with it must match exactly the selector initially used with .live().</p>
29
+
</longdesc>
30
+
<categoryslug="events/event-handler-attachment"/>
31
+
<categoryslug="version/1.3"/>
32
+
<categoryslug="version/1.4.1"/>
33
+
<categoryslug="version/1.4.3"/>
34
+
<example>
35
+
<desc>Can bind and unbind events to the colored button.</desc>
0 commit comments