forked from jquery/api.jquery.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror-shorthand.xml
37 lines (37 loc) · 1.58 KB
/
error-shorthand.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<entry type="method" name="error" return="jQuery" deprecated="1.8" removed="3.0">
<title>.error()</title>
<desc>Bind an event handler to the "error" event, or trigger that event on an element.</desc>
<signature>
<added>1.0</added>
<argument name="handler" type="Function">
<desc>A function to execute each time the event is triggered.</desc>
<argument name="eventObject" type="Event" />
</argument>
</signature>
<signature>
<added>1.4.3</added>
<argument name="eventData" type="Anything" optional="true">
<desc>An object containing data that will be passed to the event handler.</desc>
</argument>
<argument name="handler" type="Function">
<desc>A function to execute each time the event is triggered.</desc>
<argument name="eventObject" type="Event" />
</argument>
</signature>
<signature>
<added>1.0</added>
</signature>
<longdesc>
<div class="warning">
<p>This API has been removed in jQuery 3.0.</p>
<p>Instead of <code>.error( handler )</code> or <code>.error( eventData, handler )</code>, use <a href="/error/#on1"><code>.on( "error", handler )</code></a> or <a href="/error/#on1"><code>.on( "error", eventData, handler )</code></a>, respectively.</p>
<p>Instead of <code>.error()</code>, use <a href="/error/#trigger2"><code>.trigger( "error" )</code></a>.</p>
</div>
</longdesc>
<category slug="events/browser-events"/>
<category slug="version/1.0"/>
<category slug="version/1.4.3"/>
<category slug="deprecated/deprecated-1.8"/>
<category slug="removed"/>
</entry>