MCPcopy Index your code
hub / github.com/nodejs/node / stopImmediatePropagation

Method stopImmediatePropagation

lib/internal/event_target.js:170–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 }
169
170 stopImmediatePropagation() {
171 if (!isEvent(this))
172 throw new ERR_INVALID_THIS('Event');
173 // Spec mention "stopImmediatePropagation should set both "stop propagation"
174 // and "stop immediate propagation" flags"
175 // cf: from https://dom.spec.whatwg.org/#dom-event-stopimmediatepropagation
176 this.stopPropagation();
177 this[kStop] = true;
178 }
179
180 preventDefault() {
181 if (!isEvent(this))

Calls 2

stopPropagationMethod · 0.95
isEventFunction · 0.85

Tested by

no test coverage detected