1 line
826 B
JSON
1 line
826 B
JSON
{"name":"event.currentTarget","type":"property","title":"event.currentTarget","deprecated":null,"removed":null,"desc":" The current DOM element within the event bubbling phase. ","categories":["events/event-object","version/1.3"],"entries":[{"return":"Element","signatures":{"added":"1.3"},"examples":{"desc":"Alert that currentTarget matches the `this` keyword.","code":"\n$( \"p\" ).click(function( event ) {\n alert( event.currentTarget === this ); // true\n});\n"},"longdesc":"\n <p>This property will typically be equal to the <code>this</code> of the function.</p>\n <p>\n <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>\n </p>\n "}]} |