Skip to content

Commit 1cbe467

Browse files
antishokkswedberg
authored andcommitted
Add .unbind() no-arguments signature
1 parent 812081e commit 1cbe467

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entries/unbind.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<desc>Remove a previously-attached event handler from the elements.</desc>
55
<signature>
66
<added>1.0</added>
7-
<argument name="eventType" type="String" optional="true">
7+
<argument name="eventType" type="String">
88
<desc>A string containing a JavaScript event type, such as <code>click</code> or <code>submit</code>.</desc>
99
</argument>
1010
<argument name="handler(eventObject)" type="Function" optional="true">
@@ -26,6 +26,9 @@
2626
<desc>A JavaScript event object as passed to an event handler.</desc>
2727
</argument>
2828
</signature>
29+
<signature>
30+
<added>1.0</added>
31+
</signature>
2932
<longdesc>
3033
<p>Event handlers attached with <code>.bind()</code> can be removed with <code>.unbind()</code>. (As of jQuery 1.7, the <a href="/on/"><code>.on()</code></a> and <a href="/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>
3134
<pre><code>

0 commit comments

Comments
 (0)