Skip to content

Commit 7333b30

Browse files
committed
jQuery.widget: Adding example for _off().
1 parent 53007d1 commit 7333b30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

entries/jQuery.widget.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,12 @@ this._on( this.element, {
348348
<argument name="eventName" type="String">
349349
<desc>One or more space-separated event types.</desc>
350350
</argument>
351+
<example>
352+
<desc>Unbind all click events from the widget's element.</desc>
353+
<code><![CDATA[
354+
this._off( this.element, "click" );
355+
]]></code>
356+
</example>
351357
</method>
352358
<method name="_super">
353359
<desc>

0 commit comments

Comments
 (0)