Skip to content

Commit 8f7ad5d

Browse files
committed
Widget: Document return value of _trigger. Fixes #168 - Base widget _trigger: Return value undocumented
1 parent 1747920 commit 8f7ad5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entries/jQuery.widget.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,13 @@
298298
<desc>The element(s) to apply the focusable behavior to.</desc>
299299
</argument>
300300
</method>
301-
<method name="_trigger">
301+
<method name="_trigger" return="Boolean">
302302
<desc>
303303
Triggers an event and its associated callback.
304304
<p>The option with the name equal to type is invoked as the callback.</p>
305305
<p>The event name is the widget name + type.</p>
306306
<p><em>Note: When providing data, you must provide all three parameters. If there is no event to pass along, just pass <code>null</code>.</em></p>
307+
<p>Returns <code>false</code> if the handler returns false or prevents the default by calling <code>event.preventDefault()</code>. Returns <code>true</code> otherwise.</p>
307308
</desc>
308309
<argument name="type" type="String">
309310
<desc>The <code>type</code> should match the name of a callback option. The full event type will be generated automatically.</desc>

0 commit comments

Comments
 (0)