Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jQuery.widget: Adding example for _off().

  • Loading branch information...
commit 7333b3098bb66d6e129e9b9ec3f0ebb59894e701 1 parent 53007d1
TJ VanToll tjvantoll authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 entries/jQuery.widget.xml
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>
+ <example>
+ <desc>Unbind all click events from the widget's element.</desc>
+ <code><![CDATA[
+this._off( this.element, "click" );
+ </example>
<method name="_super">
Please sign in to comment.
Something went wrong with that request. Please try again.