Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (36 sloc) 1.161 kb
<?xml version="1.0"?>
<entry type="method" name="event.isPropagationStopped" return="Boolean">
<title>event.isPropagationStopped()</title>
<signature>
<added>1.3</added>
</signature>
<desc><![CDATA[ Returns whether <a href="/event.stopPropagation">event.stopPropagation()</a> was ever called on this event object. ]]></desc>
<longdesc>
<p>This event method is described in the <a href="http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/events.html#Events-Event-isPropagationStopped">W3C DOM Level 3 specification</a>.</p>
</longdesc>
<example>
<desc>Checks whether event.stopPropagation() was called</desc>
<code><![CDATA[
function propStopped(e) {
var msg = "";
if ( e.isPropagationStopped() ) {
msg = "called"
} else {
msg = "not called";
}
$("#stop-log").append( "<div>" + msg + "</div>" );
}
$("button").click(function(event) {
propStopped(event);
event.stopPropagation();
propStopped(event);
});
]]></code>
<html><![CDATA[
<button>click me</button>
<div id="stop-log"></div>
]]></html>
</example>
<category slug="events/event-object"/>
<category slug="version/1.3"/>
</entry>
Jump to Line
Something went wrong with that request. Please try again.