forked from jquery/api.jquery.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevent.currentTarget.xml
More file actions
22 lines (22 loc) · 901 Bytes
/
event.currentTarget.xml
File metadata and controls
22 lines (22 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<entry type="property" name="event.currentTarget" return="Element">
<title>event.currentTarget</title>
<signature>
<added>1.3</added>
</signature>
<desc> The current DOM element within the event bubbling phase. </desc>
<longdesc>
<p>This property will typically be equal to the <code>this</code> of the function.</p>
<p>
<em>If you are using <a href="/jQuery.proxy">jQuery.proxy</a> or another form of scope manipulation, <code>this</code> will be equal to whatever context you have provided, not <code>event.currentTarget</code></em>
</p>
</longdesc>
<example>
<desc>Alert that currentTarget matches the `this` keyword.</desc>
<code><![CDATA[$("p").click(function(event) {
alert( event.currentTarget === this ); // true
}); ]]></code>
</example>
<category slug="events/event-object"/>
<category slug="version/1.3"/>
</entry>