Browse files

jQuery.widget: Adding example for _off().

  • Loading branch information...
1 parent 53007d1 commit 7333b3098bb66d6e129e9b9ec3f0ebb59894e701 @tjvantoll tjvantoll committed Oct 3, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 entries/jQuery.widget.xml
View
6 entries/jQuery.widget.xml
@@ -348,6 +348,12 @@ this._on( this.element, {
<argument name="eventName" type="String">
<desc>One or more space-separated event types.</desc>
</argument>
+ <example>
+ <desc>Unbind all click events from the widget's element.</desc>
+ <code><![CDATA[
+this._off( this.element, "click" );
+]]></code>
+ </example>
</method>
<method name="_super">
<desc>

0 comments on commit 7333b30

Please sign in to comment.