jQuery event.isImmediatePropagationStopped()Method
Example
Check if event.stopImmediatePropagation() was called:
$("div").click(function(event){
event.stopImmediatePropagation();
alert(event.isImmediatePropagationStopped());
});
event.stopImmediatePropagation();
alert(event.isImmediatePropagationStopped());
});
Try it Yourself »
Definition and Usage
This method checks whether, on the specified event, theevent.stopImmediatePropagation()method is called.
If event.stopImmediatePropagation() is called, this method returns true; otherwise, it returns false.
Syntax
event.isImmediatePropagationStopped()
| Parameters | Description |
|---|---|
| event | Required.eventThe parameter comes from the event binding function. |
Other Extensions
jQuery Event Methods