Skip to content
Closed
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
5 changes: 4 additions & 1 deletion entries/unbind.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<desc>Remove a previously-attached event handler from the elements.</desc>
<signature>
<added>1.0</added>
<argument name="eventType" type="String" optional="true">
<argument name="eventType" type="String">
<desc>A string containing a JavaScript event type, such as <code>click</code> or <code>submit</code>.</desc>
</argument>
<argument name="handler(eventObject)" type="Function" optional="true">
Expand All @@ -26,6 +26,9 @@
<desc>A JavaScript event object as passed to an event handler.</desc>
</argument>
</signature>
<signature>
<added>1.0</added>
</signature>
<longdesc>
<p>Event handlers attached with <code>.bind()</code> can be removed with <code>.unbind()</code>. (As of jQuery 1.7, the <a href="http://api.jquery.com/on"><code>.on()</code></a> and <a href="http://api.jquery.com/off"><code>.off()</code></a> methods are preferred to attach and remove event handlers on elements.) In the simplest case, with no arguments, <code>.unbind()</code> removes all handlers attached to the elements:</p>
<pre><code>$('#foo').unbind();</code></pre>
Expand Down